how to actor destroy other actor when touches.

Reigiv4sReigiv4s Member Posts: 27
edited April 2012 in Working with GS (Mac)
X=player B=Button D=Door

i need : When X Touches B Then D Can Either be Destroyed or change its image..this way X can pass through when image change.

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    Yeah you have to set that up. So i assume you have a collide behavior for x to collide with the door. Then put the collide behavior in a rule when the boolean attribute you made is false.

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make a boolean attribute

    In actor x have a rule when it collides with b
    -change attribute to true

    In actor D have a rule when attribute is true
    -destroy or do whatever
  • Reigiv4sReigiv4s Member Posts: 27
    ok this work when use Destroy.. but when i use change image like o Door open, X cant trough.still collide with D actor.
  • Reigiv4sReigiv4s Member Posts: 27
    n1.. its work :)
Sign In or Register to comment.