RafaelBarbosatec / bonfire

(RPG maker) Create RPG-style or similar games more simply with Flame.
https://bonfire-engine.github.io
MIT License
1.22k stars 188 forks source link

[question]: Pushable from PLAYER only feature #470

Closed shinriyo closed 10 months ago

shinriyo commented 10 months ago

How can we help?

Attackable has AttackFromEnum enum. But Pushable doesn't have it. So, the enemies also push the barrel.

RafaelBarbosatec commented 10 months ago

https://github.com/RafaelBarbosatec/bonfire/assets/10039275/4b48e322-e1b1-49e1-a8d2-a1c6f4b9157e

Next version will be available this feature and per-cel movements.

void setupPushable({
    bool? enabled,
    PushableFromEnum? pushableFrom,
    bool? pushPerCellEnabled,
    Vector2? cellSize,
    double? pushPerCellDuration,
    Curve? pushPerCellCurve,
  })
shinriyo commented 10 months ago

Thank you. Will you add it feature in Pushable class?

RafaelBarbosatec commented 10 months ago

Yes! This setup is of Pushable mixin

shinriyo commented 10 months ago

your mov file's moving is nice

RafaelBarbosatec commented 10 months ago

Created also the mixin MovePerCell to be used in Movement components to move per cell.

shinriyo commented 10 months ago

í it released?