Comments

Log in with itch.io to leave a comment.

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 

So in case I want to press the Up,Up,Up 3 times where upon pressing each Up, I want a UI corresponding to each UP pressed to become visible, how do I achieve that?

Also, how can I make the UI invisible if player is not quick enough to press the buttons in succession

"So in case I want to press the Up,Up,Up 3 times where upon pressing each Up, I want a UI corresponding to each UP pressed to become visible, how do I achieve that?" - Since this works as a buffer, just do three checks using InputBufferPress. If VK_UP is pressed once, trigger one action; if pressed twice, trigger another; and if pressed three times, trigger a third action.

As for "Also, how can I make the UI invisible if the player is not quick enough to press the buttons in succession?", that’s a less standard situation. You’ll need to build the logic yourself depending on how you handle the UI and its visibility triggers.

how do I do the check,,if a variable Inputpressbuffer is equal to what? do something

Alright, I’ve run into two problems - first, I have no idea what you’re talking about right now, and second, I forgot to remove the automatic buffer clearing in the code… Gonna update the project files now

Oh ok, i mean how do i perform the check?

Use "Input Buffer Press" Action/Behavior

so does that mean I have to apply the input buffer presser 3 times to the same node like this? ( In order to achieve the pressing Up,Up,Up where upon each Up press, a UI becomes visible)

yes

Cool

(+1)

Great job