I'd like to know how to detect the collision between two objets of the same type.
In my case, two enemies:
<img src="https://dl.dropbox.com/u/39121175/collision_same_instance01.png" border="0" />
I want the nearest enemy to stop moving if it collides another enemy, but... it's confusing since the two enemies have the same object name.
How would you proceed?
Thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.
I think it can help you: