I have several sprites planes in my game. This sprites planes have a typePlane instance variable.
I created the event: "SpriteBullet On Colision with SpritePlane" -> SpritePlane Destroy.
The event above works fine, but now I want to destroy the plane only if the plane fired by the event has Its typePlane instance variable with the value "enemy".
Is there anyway?
Develop games in your browser. Powerful, performant & highly capable.
Just add a condition. SpriteBullet on Collision with SpritePlane AND SpritePlate.typePlane = "Whatever"