Destroy and get destroyed

RataqgamesRataqgames Member Posts: 7
edited November -1 in Working with GS (Mac)
I have a cannon type game i'm working on , its basically a cannon and two bricks near each other .
I want the ball to destroy and get destroyed if it collides with the brick , but it only destroys the brick and doesn't destroy its self .

Here is the rule
Brick : Rule.overlaps or collides - with - actor of type . ball
Destroy this target

Ball : Rule.Overlaps or collides - with - actor of type . Brick
Destroy this target

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Try putting a timer in the brick:

    Rule.overlaps or collides -with- actor of type ball
    After .1 seconds
    Destroy this target

    This should leave the brick on-screen long enough to let the ball see it's hit it.

    Hope that helps!

    QS :D
  • RataqgamesRataqgames Member Posts: 7
    Thanks for the help man , but nah that didn't work
  • RataqgamesRataqgames Member Posts: 7
    Someone please help .
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Did you apply the rules after the actors were already on the stage? Try removing the ones on the stage, and drag new ones from the cast bin, because your rules look good. This happens to me all the time, and it's usually me adding new rules and forgetting to replace the actor on the stage. I hope it's something that simple.
  • RataqgamesRataqgames Member Posts: 7
    Thanks for all who helped , i changed it.
Sign In or Register to comment.