timer + lives

Hi,
I'm wondering how to implement a timer where he has, say 10 seconds to flick or you lose a life.
you see im making a game where an actor collides to another actor to win the game.
How can i do, like the user loses a life if he does not collide with the the other actor
also, how can you "reset" the game but lose a life.. if you know what i mean.
I would be forever grateful if you can answer :-:)
Thanks!
I'm wondering how to implement a timer where he has, say 10 seconds to flick or you lose a life.
you see im making a game where an actor collides to another actor to win the game.
How can i do, like the user loses a life if he does not collide with the the other actor
also, how can you "reset" the game but lose a life.. if you know what i mean.
I would be forever grateful if you can answer :-:)
Thanks!
Comments
I think I know what your trying to do so I just made a test and I think it's what your after.
1. Create a GAME.attribute and call it "timer" enter 10 for 10 secs or how much time you need
2. Create another GAME.attribute and name it "lives" enter 4 which means 4 lives.
3. Create 2 actors one called "Timer" and one called "lives"
4. Double click on the Timer actor and enter the following:
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screenshot2011-07-06at80854PM.png" border="0" alt="Photobucket">
5. Double click on the "Lives" actor and enter this
<img src="http://i75.photobucket.com/albums/i282/cmw333/Screenshot2011-07-06at80905PM.png" border="0" alt="Photobucket">
6. Finally drag both actors into the scene editor and press play.
hope this helps and you can understand my instructions
Chris