0 votes

I am making a First Person game, and I want to make it so that I can detect when the player's mouse is over an object, I have a piece of code that looks like this:

func _ready():

The object I want to register mouse input has an Area node, and I use the mouse_entered() signal to register when the mouse is over, but it doesn't work.

I also tried taking the Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) out of the code, and then it worked correctly.

asked Apr 6, 2018 in Engine by PugMasterPug (117 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.