destroy actor2 when actor1 collide

EmmapianoEmmapiano Member Posts: 4
edited March 2014 in Working with GS (Mac)

Hi, Im having a problem with one of my actors.

I spawn an actor over another actor as a FX, i want that the FX(actor 2) desapear when Actor 1 collide. how can i do that?
thanks

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Have you tried a collision rule with a destroy behavior?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • EmmapianoEmmapiano Member Posts: 4

    eh, im dying to figuerout how but... im not too good....

  • EmmapianoEmmapiano Member Posts: 4

    Trying*(sorry)

    i have a ship, the ship has a animation(fire) but when the ship hits the columns the fire stills in the screen.

  • AlkaPPAlkaPP Member, PRO Posts: 194

    Create a Boolean attribute for the ship. Ex: ship alive = 1 by default and change it to 0 when collide. For your fire, rule, when game.ship alive = 0, destroy this actor.

    My Gamesalad Games On App Store:

    Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1

  • EmmapianoEmmapiano Member Posts: 4

    thats not working for me
    1. i have created a boolean attribute for the ship (checked mark)
    2. in the ship i put a change attribute when collides(change attribute shipalive to 0)
    3. in the fire i set an attribute(when ship alive is 0, destroy

    it doesn't work

  • EmmapianoEmmapiano Member Posts: 4
    edited March 2014

    Ok Ok... Sorry it works now....
    I change the boolean to integer

Sign In or Register to comment.