Countdown timer at beginning of stage
Alex321
Member Posts: 1
Hi, I'm new to Gamesalad and have what I hope is an easy question: I'm trying to create a countdown timer at the beginning of each stage, like a '3...2...1...go!' countdown. I want this to appear in front of my stage with all of the enemies moving behind but the player unable to control anything until the timer disappears. How would I do this?
Thanks for any help.
Alex
Best Answer
-
RThurman Posts: 2,880
Make a game level attribute (type = boolean) and call it "CanPlay?"
- In a 'timer' actor make an attribute (type = integer) and call it "Timer"
- Place a Display Text behavior in the actor and display the "Timer" attribute.
- Place a Change Attribute behavior in the actor and change "Timer" to 3.
- Put a rule in the actor: When "Timer" <= 0 then Change "CanPlay?" to true
- Place a Timer behavior in the actor (every 1 second)
- Inside the Timer behavior -- place a Change Attribute behavior (change "Timer" to "Timer - 1"
Put a rule in the 'player' actor: When "CanPlay?" is true then (let it do its thing)
Answers
Thanks a lot, that worked perfectly!
You are welcome!