0 votes

My previous code for detecting collisions was as below:

    resultUp = world.intersect_point(position + Vector2(0, -GRID)) 
    resultDown = world.intersect_point(position + Vector2(0, GRID))
    resultLeft = world.intersect_point(position + Vector2(-GRID, 0))
    resultRight = world.intersect_point(position + Vector2(GRID, 0)
if moveUp == true:
            direction = Vector2(0, -1) 
            if resultUp.empty():
                moving = true


However, I also have area2d's in the scene that the player can enter which signal when the player is able to interact with certain objects. Now, though, these area 2d's seem to result in collisions ocuring and cannot be entered by the player. I can't figure out why this is occuring and have tried a number of fixes but none have worked.

Any help would be greatly appreciated!

in Engine by (290 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.