Need help with resetting an actor/attribute

JackYdJackYd Member Posts: 93
edited December 2011 in Working with GS (Mac)
Hey Guys-

I need a little bit of help with resetting an actor/attribute. I have an actor set up that when actor receives an event...collides with mask, game.activated to 1. This starts a timer and count down animation then after 3 seconds of collision, the actor explodes and game over.

How do I set it up so that when the mask is not touching the actor anymore (the mask gets on then off the actor), to reset the timer and the count down animation?

Because currently, when the mask touches it for say 1 second and gets off the actor...the timer still continues causing an explosion and resulting in a game over.

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    edited December 2011
    Make an attribute touching time Int 0

    When mask overlaps or
    Collide with the actor, every one second add the attribute to attribute+1

    Otherwise,, change it to 0

    When touching time is 3, destroy
  • thanks a lot...
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    edited December 2012
    @sophisticated1024@hotmail.com
    Please don't bump up the old threads (this one is one year old) with such unimportant answers. Also please remember that GS is changing, there are new features, improvements, and changes, so some of these old threads, and answers CAN be outdated, or there can be easier, or better ways to do some things.
Sign In or Register to comment.