I'm trying to set a collision, I'll try to be as clear as possible.
As of now I have my character, moves in 4 directions, and I have an "enemy" that goes up and down in the level.
◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘
◘ ○○○○○○○ ↑ ○○○○○○○○○○ ◘
◘ ○○○○○○○ En ○○○○○○○○○ ◘
◘ ○○○○○○○ ↓ ○○○○○○○○○○ ◘
◘ ○○○○○○○○○○○ Char ○○○ ◘
◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘
Both Kinematics 2D, with direct child CollisionShape. Now I want to say (the script is in the character):
"if (my collisionshape overlaps with another collisionshape) do something"
That "do something" would be relocating my character, that part is handled. But I'm having problems getting the collision. So far I haven't been able to use "is_colliding" properly.
Thanks in advance.