I want to make a sprite appear if the player sprite touches another sprite, but if the player waits 10 seconds before touching the sprite, the sprite that should appear won't.
(This is for a jumpscare, it doesn't appear if you are slow and steady)
Have a variable set to 0 for example and if you click the sprite then it shows the thing if the variable is 0 (condition). Start a timer for 10 seconds, using 'on timer' finished set the variable to 1. Then when you click the sprite nothing will happen because the variable changed.
I made it so that if the player is in the area, a 10-second countdown starts which destroys the jumpscare sprite at the end. If the player leaves before it is destroyed, the jumpscare happens. Thanks!
Develop games in your browser. Powerful, performant & highly capable.
Nice yes destroying it would also work.