I have a KinematicBody2D called "player". I have Enemies that are also KinematicBody2Ds.

My player has a small Area2D hitbox below it's foot to detect stomping. I'm basically trying to check if that hitbox detects an Enemy(via signal), and that Enemy belongs to the group "bounceable", the player will bounce when stomping it. If the Enemy is not part of the group "bounceable", the player will take damage.

However, this doesn't work. What am I doing wrong?

  • xyz replied to this.

    yeah, in theory it should work. Just check one thing at a time using the print statement.

    hey I gave it a check and found the problem: my object was instanced on the stage by default, so even if I tweaked its collision masks and layers, it would not interfere with the instance at the level. So it works now, thanks everyone