Having an issue bringing my player "back to life" after it is destroyed by enemy... I will start from the beginning... I'm making a platform game... Box sprite with the platform behavior, pinned to a graphic sprite of my design... Wasn't too hard getting that to work at all... Kudos to Scirra... Anyway here's the issue; I have a health variable(a hybrid design by yours truly and another person from the forum; can't remember the name <img src="smileys/smiley13.gif" border="0" align="middle" />) and the code looks like this:
Health bar = Set animation to empty
Hero Box = Destroy
Player Sprite = Set animation to defeated (playing from the beginning)
Player Sprite = Set Y to (Blah,Blah)
System = Wait for 4.0 sec
Player Sprite = Flash for 2.0 sec
Player Sprite = Destroy
System = Subtract 1 from PlayerLives
Then I have a subevent attached for "disabling the keyboard" for the defeated animation... It's a triggered event BTW...
I started another string under that event:
(Triggered event) Player Sprite; On Destroyed
System = Restart Layout
System = Create object: Hero Box on layer 1; 83,390
So as you can tell, I'm pretty much lost at this point... lol! Nothing operates(after my player "dies"... sorry had to update that)the way I thought it would so I didn't bother going any further until I get some feedback... I f anyone has a clue of what I need to do in order to get my player's "2nd chance" to work properly, I'm all ears...