> Hi Phaze, something like:
> creating sprite particles
> calling arrays
> 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, like
> current sheet: GameSheet
> Event: 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.
so you're saying, if I have
and includedCodeSheet has
spriteDude on click: destroy
spriteDude on click: spawn dust particles
that will work?
<img src="smileys/smiley3.gif" border="0" align="middle" />