Hey rexrainbow, me again <img src="smileys/smiley1.gif" border="0" align="middle" />, been using this plugin HEAVILY in all my projects, I can't imagine life without it <img src="smileys/smiley17.gif" border="0" align="middle" />.
Now I'm confused about something, and this is the actual ORDER of events and such. More specifically, can you clarify WHEN does the function get called if I place a "call" action?
I would expect it to be "inline", but it seems it's not.
Can you please clarify for me when does the function get called, and whether or not it does something to the "context" (i.e. picked objects etc).
Even more specifically, if I have something like:
Event button clicked:
action 1: set variable "spriteCount" to 0
action 2: call function "destroySprite"
subevent for each sprite:
action 1: add 1 to spriteCount
action 2: textObject -> set text to spriteCount
Event function called "destroySprite"
action: sprite -> Destroy
In the click event, I am calling destroySprite which should destroy my sprites. I would expect that by the time the subevent runs, sprites are destroyed. But actually they are not, they get counted etc.
On the other hand, if I add a Wait after the function call, it seems that the objects get destroyed by the time the subevent runs.
Am I getting something wrong?
I can post simple capx if this is not clear enough.