[QUOTE=vee41] [QUOTE=California] Hi Phaze, something like:
creating sprite particles
I saw that including "CodeSheet" in another sheet automatically executes anything inside them, but I'd like to know how to call
code from CodeSheet, that is, how to reuse code inside a current Layout sheet, likecurrent sheet: GameSheet
On destroy: Create particles (call code stored in CodeSheet)
hope I explained myself.
If you've included the sheet which holds the event you wish to run, you don't really need to 'call' it in any manner. What including an event sheet to another does, it basically pastes all it's content to the other event sheet.
So in your example, if you included an event sheet with trigger : On particle created, it would trigger when the destroy event in your other event sheets runs and creates particles. [/QUOTE]
so you're saying, if I have
and includedCodeSheet has
spriteDude on click: destroy
spriteDude on click: spawn dust particles
that will work?