EXPLODES BOMB WHEN ACTOR ARRIVES

GSExtremeGSExtreme Member Posts: 65
edited November -1 in Working with GS (Mac)
I have the main actor which is controlled by the user, and a bomb (separate actor) in the background...the background is divided in 12 images next to each other...I want that when the actor arrives in the image part 8, the bomb explodes after 5 seconds(I made already explosion effect)...or when the actor is at a certain distance away from it...and if he is hit he dies

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    The first part of your question can be done by creating a boolean attribute, set it to false and call it what you want. for this, lets just call it "X". In the piece of background that is on the stage, add a rule that says when main actor "overlaps or collides" with "background8" (or whatever the name of the background piece is) set "X" to true. Otherwise set to "false"

    Then in the bomb actor, have a rule that says, when attribute "X" is true, "Timer": After 5 seconds "destroy this actor" and "Spawn Actor" explosion.

    For the second part of your question, you'll need to watch this...

    http://www.youtube.com/user/GameSaladCookbook#p/u/43/_ayoN7dCWMw

    Hope that helps.
Sign In or Register to comment.