![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Mostrio |
Hi, i’m pretty new at godot and i’m trying to make a 2d side scroll shootem’up game.
I have a problem making the classic smooth rotation animation for up and down movement (like gradius).
I have an idle animation which is static, and up and down animations rotating on opposite directions (along the y axis).
Anytime the input direction change it has to rotate in the opposite direction passing through all intermediate frames starting from the current. Also, if the player is not moving it also has to smoothly return to idle.
For example, using current animations:
When the ships is moving up i play the up animation and if i press down while up is still playing it has to play the up animation backwards from current frame go throught idle animation and play down animation.
What is the best way to do it?
Thanks in advance!