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!

asked Dec 6, 2017 in Engine by stubbsy345 (282 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.