Colides with an actor and bullets
alessandrosilveira@me.com
Member Posts: 5
Hello guys, I have the following issue on my game:
In Hero Actor rules I have: When it colides with the bullets, hero actor is destroyed.
In bullets rules I have: When it colides with the hero actor, bullets is destroyed.
I don't know why, but it is not working all the time. Sometimes the bullets were not destroyed, still on scene and kill another hero actor.
Two questions: Can I set a order to destroy the actors? I need to destroy bullets before the hero actor.
Second: Can I destroy the bullets with code inside my hero actor?
Comments
I can see how that code might be tricky. I would use change attribute then destroy itself. The change attribute to destroy the other actor if your rules are not working. Obviously change attribute before destroy itself.