Will a Timer AFTER reset itself?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'd like for my ball to hit a brick and destroy 3 seconds after that. However, if it hits another brick during that 3 seconds then I want the timer to reset and allow for 3 more seconds.

So, is it possible to set a RULE that after a collision/overlap with a Brick, Timer: After 3 seconds destroy (will this rule continuously update if the ball continues to hit bricks?)

Comments

  • m456arcusm456arcus Member Posts: 189
    I don't know if this would work, but why not make an integer attribute "x", then

    When ball collides with brick =>
    set x == 3
    every 1 second x == x - 1
    when x == 0, destroy ball

    Could someone confirm if this would work, as I haven't tried it out but I did do something similar in my game.
Sign In or Register to comment.