Animation speed while running

Hello, I have adjusted the animation speed of when it is running by dividing the linear speed by X. Do you know if gdevelop has a method for this? Do you know of another mathematical operation to achieve this?

Example:

https://drive.google.com/drive/folders/1kfnAJgtM2AMY2Wzp5L8tu8fr8f614PkQ

I don’t understand.
If you made it, why are you asking for a method?

I remember doing something similar for a running game, too.

I wanted to know if there is a less crude way to do it (dividing the speed of X by 200 times seems ugly to me).

Well, there’s always a more complex math formula. You can apply any math formula, if you’re able to figure it out. :grin:

I guess it also depends on the sprites and game mechanics.
I remember having to set a minimum speed to avoid a weird-looking result during acceleration and slowdown, but that was in the movement events, not the animation events.