Actor wont vanish when it comes in contact with another actor

Hi,

Im trying to setup one of my games and what Im trying to do is get my actor to be destroyed when it comes in contact with another actor.

These images show the coding from the arrow and the bars.

I want the arrow to be destroyed when it comes in contact with the bars.

http://gyazo.com/df10d4a5ea19843fe664f3fad483947d
http://gyazo.com/db27f22b7d73dbf63d8c56c83a81ac6e
http://gyazo.com/250fb47633563097d9668890b2f70334

Comments

  • ChaserChaser Member Posts: 1,453

    It looks like your arrow actor is not labeled wall your collision is on your wall to collide with a wall

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited March 2014

    If you want the Arrow to be destroyed by the bars, take the Rule and Destroy Behaviors out of the bars and add one to the Arrow that says:

    Rule:
    Any are true
    If Actor Overlaps or Collides with Left-Bar
    If Actor Overlaps or Collides with Right-Bar
    Destroy
    

    You could also add a Tag to the Left and Right-Bar called Enemy (or anything) and update your rule to be:

    Rule:
    All are true
    If Actor Overlaps or Collides with actor Tag Enemy
    Destroy
    
  • Madison95MartinMadison95Martin Member, PRO Posts: 10

    Thanks guys! It Worked!

Sign In or Register to comment.