destroy actor2 when actor1 collide
Emmapiano
Member Posts: 4
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
Have you tried a collision rule with a destroy behavior?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
eh, im dying to figuerout how but... im not too good....
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.
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
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
Ok Ok... Sorry it works now....
I change the boolean to integer