jonathaneeckhout / jdungeon

An opensource 2d morpg game based on the Godot engine in a medieval inspired fantasy world
https://jdungeon.org
BSD 2-Clause "Simplified" License
124 stars 21 forks source link

Dev Task: make AnimationPlayer's use AnimationTree or Tween #137

Open NancokPS2 opened 8 months ago

NancokPS2 commented 8 months ago

To use simultaneous animations, we either need an AnimationTree or have Tweens replace the functionality of the AnimationPlayer.

For the former, it would keep things mostly the same, but AnimationTree requires quite a bit of manual work + code work.

For the later, the Tweens can simply translate the animations from the AnimationPlayer to their own Tween, that way we can still use AnimationPlayer to create animations instead of relying on code to make them.
If everything works fine, this approach will use a component that is attached to the AnimationPlayer and merely gives it the ability to run several animations simultaneously.

jonathaneeckhout commented 6 months ago

@NancokPS2 do you know an example of this tween approach?

NancokPS2 commented 6 months ago

All in all, animations can be done with any mix of Tweens and AnimationPlayers