[Request] Trigger once for multiple instances

Discussion and feedback on Construct 2

Post » Sun Jun 14, 2015 12:23 pm

This has been requested before but I can't find the thread and forgot if Ashley commented. Anyway, it would be nice if we could have another type of "Trigger Once" that plays nicely with multiple instances. I often find myself with situations like this:

+Enemy is Active (bool)
+Trigger once
-Do a thing

or something like

+Enemy.TimerVar > 5
+Trigger Once
-Do a thing

But it only works for one instance and no placement of "for each" helps here. You have to make another var and do this:

+Enemy is Active (bool)
+Enemy.var = 0
-Do a thing
-Set Enemy.var to 1

Looks like no big deal but when you use it for AI and such it gets really annoying with all the extra vars and conditions.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Sun Jun 14, 2015 2:33 pm

I'm currently doing ai for my game and run into this issue a lot too. A "Trigger once per instance" would definatly be a great addition.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132


Return to Construct 2 General

Who is online

Users browsing this forum: part12studios and 4 guests