2D Character Movement

Godot Version

4.2

Question

I recently began using Godot to create games, and I’m encountering issues with animations. Despite watching numerous tutorials, I haven’t been able to get the animations for my 2D character to work properly. I aim to have two animations for the character: one for walking and another for running at different speeds. However, I’m experiencing difficulties with the animations and character speeds.

Can you be more precise on what exactly you want to achieve? You could also show some code, that would help understand what you are trying to achieve

i get it so are you using a animated sprite 2d or animation player? doesnt matter in the inspecter menu to the right both nodes have a speed scale value that can be used to speed up or slow down the animation. so lets say you charecter moves 30% faster then just change the speed scaler from 1 to 1.3. you can do this with code in 2 ways 1 in a script on the animation player or sprite like

if var speed boost active:
speed scale 1.3
on end
speed scale 1
(not real code)

or by refrencing it then .speedscale = value

so you jusnt need to set up things to know when and what speed buffs / nerfs are applied whether its precise equations or signals or vaiables
hope this helps :slight_smile: