Hi there! I’m new to Godot and programming as a whole, so I’m following a tutorial for a game. Right now, I’m making a code for the character movement, and for some reason, the “duck” animation isn’t working. It just flashes really quickly on the screen. When I hold down the key, it doesn’t even play. I don’t know how to fix this, can I have some help!! ToT
Hi,
Try using is_action_pressed("Duck") instead of is_action_just_pressed("Duck"), which means you want to play the animation while the key is being held down, not just on the frame it’s been pressed.
Let me know if that works.
oh my god i didn’t even realized I’d written this, thank youu ToT
