I always ask an excessive amount of questions and I'm sorry for that, I've been on here a lot lately.
I'm making a retro game. I'm making it so if the player hold down W, A, S, or D down for a randomized amount of seconds (say like from 15-30), they have to battle a new enemy that comes up to you. How would I make it so that they do this? I'm still trying to figure it out... help
You can use a counter variable. This can let you keep track of how long your key has been down for.
Then use that counter as a condition for an event.
This is the quick way, but the problem is the random(15,30) will give you a new random number every tick, so basically you will never get to 30. If you want, you can use another variable to store the target time once, and have the condition compare the two variables to run your spawn action instead.
Develop games in your browser. Powerful, performant & highly capable.
Thanks, that's very helpful