I don't know why "Reset Scene" is not working Properly !!! HELP !!!
Ok so i believe I'm doing this the right way but i want when my hero's life gets to zero, the scene to reset. Am i doing something wrong ?!? If you look at the pic of the code that i uploaded, it works fine when my hero jumps on the "spikes" actor and i "destroy" hero and reset scene, but when hero's left reaches zero, it'll "destroy" hero and reset scene but then the hero can't move. He's stuck in his "reset location" ANY SUGGESTIONS !!

The second rule reads :
when game.healthbarHero = 0
Destroy this actor
Reset Scene
Thats the one that isn't working
(

The second rule reads :
when game.healthbarHero = 0
Destroy this actor
Reset Scene
Thats the one that isn't working

Comments
when game.healthbarHero = 0
change attribute to true
In your reset rule say:
when attribute is true
reset scene
I think that will work
Alex
Reset Scene behavior … the computer stop processing behaviors at that point (ignores everthing after it)
since what you want to do is a Reset Scene … delete the Destroy behavior
@};- MH
but, not in computer logic! … which is linear and unreasonable …
@};- MH
if so, leave it; then you only need Actor's healthRule … with just a Reset Scene
if not, I haven't a clue as to why your Actor's collideRule is processing after the Destroy 8-|
@};- MH
Which i wanted to avoid, lol
When lives=0
Spawn actor spike and make the alpha to 0
Or do u have anything that will prevent any movement when hero life hit 0?
Can u describe ur situation more? like what happen when hero life reach 0, what should have happen exactly? do hero life auto refill back to default value?
If you want to skip pass those thing u have said, then yup! u need to add a changeAttribute for game.Health To: 3(Or whatever u want)
Remember, is you score is store in the main attribute, it might need to set to 0 before u can continue the new game!
Maybe once you resort the scene , some attributes that needs to be reset is not resetting , try to add some change attribute when you reset the scene to reset the game or self attributes that are related to the movement of the actor..
Roy.