Hi Im making a project and I need help with collisions. There is an enemy scene and a player scene. I need the enemies not to have collisions among themselves. However I need the play to have collision with the enemies. How do I achieve this?
Thanks in advance.
if you click on your chrachter body , in collision tab , you can use layers.
first for your player , for example choose layer 1 and in mask choose layer 2.
then in your enemy scene , choose layer 2 and in mask tab , choose layer 1
now , you disable another layers.
I dont’t know what I did but I set tilemap layer to 1 and 2 and mask to 2. For the player I set layer to 1 and 2 and mask to 2.
for the enemy I set the layer to 1 and mask to 2. Thankfully it works. Thanks for the help.