I'm probably being quite dense about this but I can't figure out a simple solution for this problem:
I have multiple instances of a sprite that has a boolean instance variable. On the boolean for a particular instance being switched on, that instance should perform an action.
This doesn't work:
sprite.boolean is On, trigger once | do action[/code:23qjfngw]
It triggers the first time the boolean is on for any sprite and then that's it. Nor does this work:
[code:23qjfngw]For each sprite, sprite.boolean is On, trigger once | do action[/code:23qjfngw]
I get why that these don't work, based upon how the picking system and trigger once functions. I know that I could work around this by using a number variable instead of boolean and using something like:
[code:23qjfngw]On start sprite.no = 0;
If sprite.no = 1|do action; sprite.no = 2;[/code:23qjfngw]
...but I'd like to try and preserve the use of the boolean if possible.