If several different things can trigger a single action (e.g. several ways a game can end- run out of life, run out of time, complete it), i would like to create my own event called say "gameEnd". Then If the time runs out, I just have to "raise" the gameEnd event etc.
This way I only have to write the gameEnd event and actions once, and can raise it in lots of places.
I have searched on "custom event" but cant find anything. There is nothing under events in the manual. Any ideas?
If this is missing, its a pretty big omision. I guess the work around would be to duplicate a lot of code, or possibly to try and construct a big complex condition statement to try and catch all the places where they action is required.
Or perhaps you can simulate this by creating a hidden sprite, then set it to say invisible in several places to simulate "raising" the event, then have your "handler" condition on the visibility attribute?