Need help on making code for dash while mid air

Godot Version

4.7.1

Question

How can you make a code where you can sprint and dash when mid air, I am making a game about a shadow escaping the facility and I’ve been doing game development for some days and had stopped for a while.

Hi Mark!

If you start from zero, I would recommend following along some Youtube tutorial about this topic. There is different videos on that topic. In this video the guy implements all movement types in one process function – including dashing. That’s a good start!

A more advanced topic related to character control and movement is implementing a state machine. There is already lots of assets which help implementing these and Godot has tools around that too. Here is a video on state machines.

If you want to have more help with an already existing script and controlling the character, you can share your code, so people know what it is about.

Kind regards! :four_leaf_clover:

thanks