On construct there is something that bothers me. I need a object "bullet" that when collide with any object with "enemy" instance or property, the bullet destroys itself, but I don't know how can I do that. I need this because I don't like the idea of make a lot of events in which the bullet collides with the enemies one by one so, please help me :3
Develop games in your browser. Powerful, performant & highly capable.
Perhaps Families are what you are looking for: