reset game lives? Kill actor?
Dooki
Member Posts: 247
Hi there,
Did a search but haven't found exactly what I need, though I thought I did see it once before.
Reset:
- Main actor has three lives. If he ends level one with two lives, he starts level 2 with two lives.
- How do I reset game lives upon change scene.
Kill actor:
- Main actor races against the clock. Time runs out and a "retry" actor appears (spawn).
- My actor still moves around when the Retry sign appears. How can I kill the actor when retry spawns?
Thanks folks!
Did a search but haven't found exactly what I need, though I thought I did see it once before.
Reset:
- Main actor has three lives. If he ends level one with two lives, he starts level 2 with two lives.
- How do I reset game lives upon change scene.
Kill actor:
- Main actor races against the clock. Time runs out and a "retry" actor appears (spawn).
- My actor still moves around when the Retry sign appears. How can I kill the actor when retry spawns?
Thanks folks!
Comments
2) So in my main actor I have a move rule. So am I creating a new rule (attribute: game.start=1) and then putting my current move rule into this newly created game.start rule? If so, it doesn't work. If not, can you give a little more detail on this?
Thanks!
- I have an attribute called "MoveTo" that moves my actor, and it's set to "1."
- In my actor that stops the timer and spawns the "Retry" sign I added a
change attribute:MoveTo=0.
I didn't work. I also tried a "3" but the actor was still able to move.
Yeah I did the same thing:
- game.start rule, then put my move rules inside it.
I made the game.start and integer attribute. Is this correct? As soon as I move my move rules into the new game.start=1 rule, my actor no longer moves. Hmmm.
"MoveTo Rules" inside of new game.start Rule
http://i38.tinypic.com/2qd6fec.jpg
End of time with game.start=3
http://i34.tinypic.com/ta6gwm.jpg
Not sure if this matters but my timer is a clock image that scrolls across a bar. When it collides with the above stop actor, the stop actor triggers the "Try again" sign, and now the game.start=3 attribute.
When I created the game attribute it was set to "0." This threw everything off. Thanks again TSB and CodeMonkey!
-Dooki