How do I…
How can I get this mechanic of the Sprite appearing when the button is pressed and going away after a set amount of time to work without it either not showing up, not showing up on the second phase if you activate it too quickly, or permanently being visible if you spam the button when its activating? (i added a variable to stop that but that just makes it not spawn at all ever.)
What is the expected result
Sprite will spawn for 2.7 seconds before despawning after you click the reset button and if you click the sprite before it despawns, it goes to phase one, and if you don’t, it moves up to the next phase and hides itself until you press the button again when its not in the cool down.
Explain what should happen when you run the game.
Player presses a button, clicks the sprite before it goes away, the sprite goes back to phase one. If player misses, it moves onto the next phase and will appear in a different position for the next phase.
What is the actual result
Sprite doesnt spawn at all (with the ss I have rn because ive been trying to fix it with many different ways
Other scenarios I encountered with other code I tried to fix it with: Phase 2 doesnt show the sprite at all, If spamming the button then the sprite will permanently be on the screen.
Related screenshots
Screenshots in replies!!!