Make the delay worked regardless of how a button is hit
What is the expected result
Player hides when ctrl is pressed, there’s a delay, then they can get out while ctrl is pressed
What is the actual result
Happens as expected if ctrl is hit by a finger and immideatly pulled away, when there’s even the tiniest of delays in pulling away your finger the character gets in and gets out almost immideatly
I am not sure i understand your question correctly
I am explaining here if you press ctrl players auto hides and after ctrl is released there is delay before he get out of hiding
Make number scene variable called HideTime
Make event
Condition
Player is in collision with hiding place
If one of these conditions is true
Lctrl is pressed
Rctrl is pressed
DO NOT USE TRIGGER ONCE
Action
Change scene variable HideTime SET TO 100
And now you make another event
Condition
Scene variable HideTime is GREATER THAN 0
DO NOT USE HERE TRIGGER ONCE
Action
Change scene variable HideTime subtract 5 (THIS NUMBER you will need to adjust to your needs)
Change animation of hiding place set to hiding
Hide Player
Another event
Condition
Scene variable HideTime is less LESS OR EQUAL TO 0
Trigger Once
Action
Change animation of hiding place set to empty hiding
Show player
You should create text object place it on scene and set text of text object to Variable(HideTime)
To see what is its actual value and you can either subtract less or more from it to make delay shorter or longer
Another question
Hiding should happen AFTER you release ctrl
But
A
I press ctrl and release it
Then after some delay player hides
B
I press ctrl and release it
But before player hides i press ctrl again
Now but that gets ignored and player hides after day from 1st ctrl press
C
I press ctrl and hold it for 2 secs or 5 or 10000
That delay starts only after i release ctrl
D
I pressed ctrl and now it does not matter do i press it again or not
Player needs to hide after delay from 1st time ctrl was pressed
Or maybe released
So basically, when a player presses CTRL, the player hides, when they press CTRL again they unhide. But i want a delay long enough that if you press CTRL again it doesn’t just IMMIDEATLY pop out