Skip to main content

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

"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