How can I set the animation for Sonic to turn around after the skid and ONLY if the player is pressing left or right? #85
-
|
I was looking at the animations of sonic mania sprites, and I noticed that there is an animation that is played after the skid animation and if the player just presses left and right, this will make Sonic turn to the other side playing this animation, however if the skid animation is running but if the player is not holding left or right (input.down.left and input.down.right) only the walking animation is executed, skipping the animation of the character turning to the other side after the skid! How can I make this animation play ONLY if the player holds the button left or right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
i have something similar implemented, what I did is have the turn around frames be part of the skid. Once the animation comes to a end, it looks as if sonic has turned (not sure if it will give you your desired look, but it helps). |
Beta Was this translation helpful? Give feedback.



That's because ANI_SKID2 is overwritten by ANI_SKID. Pay attention to what your code does. Add
&& animation != ANI_SKID2to the if statement