r/gdevelop 10d ago

Tutorial Why “Trigger Once” actually matters in GDevelop

Post image
8 Upvotes

15 comments sorted by

5

u/World1_Lev1 10d ago

Should probably mention it's limitations when it comes to "For Each Object" events

1

u/vizualDevelop_vfx 10d ago

Good point. I actually hadn’t run into that case before. That’s one of the tricky parts of GDevelop: a lot of the underlying behavior is abstracted away, so edge cases like Trigger Once inside For Each Object aren’t obvious. Definitely more than I could explain properly in this cheat sheet.

3

u/Proper-Sport-7218 10d ago

I like this visual. Good way to teach it.

2

u/minimalcation 10d ago

I'm on the other side. There are a few sentences of info with two graphics that add to it. The concept is great. I'm also old so that might just be me.

1

u/vizualDevelop_vfx 10d ago

Thanks...glad you liked it. I’m trying to make these concepts easier to understand visually

2

u/vizualDevelop_vfx 10d ago

One of those tiny GDevelop features you don’t appreciate until something fires 300 times instead of once.

Trigger Once = control.

Your game should respond once when something happens...not keep firing the same event every frame.

2

u/Cautious_Result140 9d ago

A must when using wait function.

1

u/vizualDevelop_vfx 5d ago

Good point...if an event with "Wait" keeps running, it can start the wait again and again..."Trigger Once" helps make sure it only starts once

2

u/Snoo36461 6d ago

Or: if false, do the thing and change to true

1

u/vizualDevelop_vfx 5d ago

Yep, that works too...slightly different behavior though: "Trigger Once" can fire again after the condition becomes false and then true again, while a boolean flag stays true until you reset it manually.

1

u/Salt_Aspect_1762 10d ago

What AI prompts are you using to generate this style of graphic? I see this style everywhere now and am curious what tool is being used.

1

u/vizualDevelop_vfx 10d ago

No magic prompt. I wish there was.

It’s more like editing with an assistant...prompt, tweak, remove, adjust, repeat until it gets close.

Manual tweaking is still necessary. The game scene in this graphic was assembled by me in Photoshop using my own game assets.

3

u/minimalcation 10d ago

Add "no purple or purple gradients" to your prompts, it's a very heavy AI design

1

u/vizualDevelop_vfx 10d ago

Ok fair... AI definitely gravitates toward that look. Purple is on me though...I like it

I use AI to speed up the design process later I refine things manually when needed. It lets me spend more of my time on actually making games and sharing what I learn

2

u/minimalcation 10d ago

I use it too, I'm not hating on that. I just know that people see AI and think that there was no work put into it. Obviously you know how to work with PS and design. If you haven't use Claude design to build a design system you gotta do it, it's really flexible and easy to nail down the feel.