Am trying to make my character dash with but it doesn’t work I tried implementing what I watched in the tutorials it doesn’t work either maybe it because the event is from an older version of gdevelop does anybody know a new method to go about this.
Hello DanielRE2, sorry, but without your code it is not possible to know what you did wrong.
However, I can help you to make a new code, using an extension:
With it, you can use this dash behavior:
Now you can use this action in the event sheet:
I already used the extension but the problem is that if I make it dash with animation either the animation will not play or it plays and won’t switch to the idle animation
Can you show me your code?
No problem
I think the character’s animation is continuing from dash because you didn’t set it for the player to return to their normal animation.
It’s still not working when I change the animation to idle or run it freeze is there any event that I should add.
But I don’t understand one thing, after the dash, the player will no longer have any?
Because the dash variable becomes 2 forever, and you need the dash variable to be equal to 1 for the dash to work.
It works but another problem is that if I hold down the dash key it keeps dashing I want it to dash then cool down for a few seconds then dash when the dash key is pressed again.
I already figured it out thanks