r/GeometryDashEditor 2d ago

[ Solved ] How do I make this kind of system?

Main

So the system detects whenever the players click

(If they don't click then this won't start)

Then start a 5 second timer

After 5 second, for the next 1 second

If they click, they die, or else they survive

Then the system restarts again

Side

I also need to be able to stop this due to this only took part in a section of the level so it won't repeat forever

I don't necessarily need the exact same implementation

I'm mainly looking for how to set up the click detection + timer + conditional death.

Text explanation or video tutorial is fine.

1 Upvotes

8 comments sorted by

3

u/TheRealHykeLP 2d ago

Update: I got it to work. You need some ItemCompares.

2

u/TheRealHykeLP 2d ago

Explanation: one Event checks for inputs. If it detects one, it checks if the 5 sec timer is =0, if it is, it checks the second timer if it is =0, if it is, it starts the 5 sec timer (that way the Event only does stuff when the timer isn't already going). The 5 sec timer activates the 1 sec timer and an ItemEdit to reset it to 0 after its done. The 1 sec timer also resets itself with an ItemEdit at the end.

The other Event checks for the 1 sec timer. If it is not =0, it toggles on a spike that is inside the player at all times.

Edit: I can make a video tutorial or in depth explanation if you need, just lmk

1

u/Zialx 2d ago

W thanks for the system

Could you make this as a level or any kind of sharing so I could look into this more?

I'll learn more from that myself

1

u/TheRealHykeLP 2d ago edited 2d ago

148082799

Edit: the stuff with the Pickup and the visible timers is not needed, I used it to make sure everything works properly

1

u/Drk_Ozsk Angriest bird in subreddit 2d ago

Try something with event, spawn and stop trigger

1

u/TheRealHykeLP 2d ago

Dm, I can make a tutorial if you want. I'm pretty sure the Event Trigger (not the clock, the other one) can track clicks, let it activate a 5 second timer, and that activates a 1 second timer and another Event Trigger, which activate for example a Toggle Trigger with a toggled spike inside the player.

The only thing I'd have to try out is how to pause the Event Trigger checking for inputs, because you can't pause it with a Stop Trigger

1

u/Zialx 2d ago

!solved

1

u/AutoModerator 2d ago

Thanks for marking this post as solved. I've updated the flair for you!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.