Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Dadango | |
Old Version | Published before Godot 3 was released. |
So I’m making my first game i Godot engine, and liking it so far. Everything worked, but then i added another “enemy” to the game, and since I have been unable to get it to work. I made a new scene for testing, and I can’t figure out what is wrong.
Script:
2d view of testing scene:
The “error”/the collision:
So as you can see, it collides with… itself?
The collision position (350,450) is the position of the Parent Node:
Everything worked before, but I probably f*cked something up along the way. Any help is very much appreciated
Your rays are not looking at the layer of the body, right?
(check layer on body properties and layer mask on rays, also type of body on rays if needed)
eons | 2016-11-24 20:04
Thank you so much. Last time i tried using Layers and Mask it didn’t work, but now it does. I’ve been pulling out hairs over this for hours, you saved my day
Dadango | 2016-11-24 20:43