Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi, its your number one fan here,

So in case I want a system where upon pressing down key once let there be squat animation, and pressing it twice quickly there should be a lying prone animation, i want it to be that when I press the down key twice fast, the player should not play the squat animation but should play the lying prone animation immediately what should I do?

hi, please reply

I'm not really sure what the problem is, but you can create a state variable, and if the button is pressed once, the value will be 1, if pressed twice, it'll be 2. Then, based on this variable, you can trigger the squat or lying prone animation

hmm, okay