This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I am trying to create a virtual mouse (a mouse within the game). I am doing this so that the player has more precision when aiming because the camera's position will always be between the player and the mouse. In Unity, I did something similar, used the delta of the mouse movement to move the virtual mouse and tried to replicate it in Godot. However, when using "relative" (which I think is the same as delta in Unity) from "InputEventMouseMotion", it is never (0,0) as the documentation says, but sometimes it is even more than (0,0) and the virtual mouse is always moving. Any recommendation on how to solve this? Thank you!

Godot version v4.0.1.stable.official
in Engine by (12 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 Frequently asked questions and 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 [email protected] with your username.