Countdowns issue

poopdecksweeperpoopdecksweeper Member Posts: 180
edited March 2012 in Working with GS (Mac)
Hi guys,

I am trying to make a countdown that once actor A overlaps actor B then timer will start countdown from 7.

Two things are wrong. 1) the timer will not countdown for some odd reason. 2) I am trying to reset the countdown to 7 once actor A overlaps actor B, but still have a countdown.

So, once FLYER hits GATE then timer = 7, but start countdown to 0.

If countdown = 0 then score multiplier = 0.

Thanks

Comments

  • poopdecksweeperpoopdecksweeper Member Posts: 180
    bump
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited March 2012
    You will need two attributes:
    doTimer (type = boolean and set it false)
    theTime (type = integer and set it to 0)

    When the two actors collide
    -- Change Attribute: doTimer To: true
    otherwise
    -- Change Attribute: doTimer To: false

    When doTimer = true
    --Change Attribute: theTime To: 7

    When theTime > 0
    -- Timer: Every 1 second
    ----Change Attribute: theTime To: theTime -1

    Hope this helps!
    RThurman



  • MotherHooseMotherHoose Member Posts: 2,456
    demo:   http://www.mediafire.com/?q7fj14hu9e8jq1s

    with scoreMultiplier

    @};- MH
  • poopdecksweeperpoopdecksweeper Member Posts: 180
    thanks guys I got it figured out, but now I need to find a way to reset my score multiplier once my timer reaches 1.

    I have a lot of attributes that are constrained working at once, so it is really hard to keep a track of where the attributes are constrained in what actor, and make the logic right. Once I do this I can update my game on the app store and get some good reviews. I had a bad review online so I wanted to change what they said to change. That way my gameplay wont take me down to a 1.6 out of 10. haha.
  • poopdecksweeperpoopdecksweeper Member Posts: 180
    bump
Sign In or Register to comment.