How verify if object A has hit any object in the screen.
I asking that because I need to destroy a object A if it hit any object in the screen including floor, walls, enemies, main character and so on.
The "is overlapping" is a good conditional.
Develop games in your browser. Powerful, performant & highly capable.
I know but I don't want to test all of the objects in the screen. I want to test only one time. Something like:
- destroy objectA
use the "trigger once while true" and put the objects what you want to test inside a family, or make one check for each object.
You can use an instance variable ID to meet the exactly object you wanted check too. Ready these tutorials, it will help: scirra.com/tutorials/355/making-character-composed-of-multiple-parts
scirra.com/tutorials/361/understanding-uid-iid-health-cards-and-rocket-smoke-trail/revisions