Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Federe76 | |
Old Version | Published before Godot 3 was released. |
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.
Hi,
Do you have set_contact_monitor(true)
and set_max_contacts_reported(>0)
? itβs a common problem
Nutr1z | 2017-01-21 08:58