Flipping System for parkour game

Yo, so let’s cut to the chase, I’m trying to make a flip system for a game I’m working on which if you think “gambling” NO, it’s not that type of flipping heh. Like doing backflips and frontflips.

I really want this in my game but I don’t know how I would code it in, maybe I could like make it so that if you press a certain button like “1” It plays the animation of for example backflip but I think we all know the issues with that, If I press It still on the ground I would just do a backroll and if you were to spam the button it would keep on playing the animation which tbh is too hard to fix but still.

If anyone could give me suggestions or maybe even if you find, a system or something I could base it off.

3 Likes

You can have a few if statements for logic, but the general is this:

Apply an impulse going upwards and backwards on the hrp, while playing an animation, and maybe disable their controls from the player module inside the player scripts…

1 Like