Countdown timer at beginning of stage

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

  • RThurmanRThurman Posts: 2,880
    Accepted Answer

    Make a game level attribute (type = boolean) and call it "CanPlay?"

    1. In a 'timer' actor make an attribute (type = integer) and call it "Timer"
    2. Place a Display Text behavior in the actor and display the "Timer" attribute.
    3. Place a Change Attribute behavior in the actor and change "Timer" to 3.
    4. Put a rule in the actor: When "Timer" <= 0 then Change "CanPlay?" to true
    5. Place a Timer behavior in the actor (every 1 second)
    6. 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

Sign In or Register to comment.