Hello, I am creating a Slither.io style game, but I have a collision problem between the enemies.
I have two objects, both with variable ID, which is stored the value "Head.UID".
I want to check if the "Head" object collided with the "Body" object, but only destroy the "Head" object if the variable "Head.ID" is different from the variable "Body.ID"
That is, destroy the "Head" object when it collides with another enemy's body. Thus, the Head object is destructive as soon as a Body is created on top of the Head. I will leave the project and an image to be easier to understand.
Sorry for the horrible english
http://www.mediafire.com/file/27kat5kkwg761ol/slither.c3p/file