0 votes

Ok, So im making a game where the player is moved with the mouse as in it follows the mouse wherever it goes similar to a game called (feeding frenzy). I tried by using the Hidden Mouse Mode(Glitches at the edge of the screen even in full screen) and setting its position to get global mouse position. It works for the most part, the problem however is that because it uses the position it just passes right through collision shapes and that pretty much ruins the entire point of my game. I tried to find videos and guides online to no avail and this is my last hope. Is there a way to capture the mouse so that it is invisible and be able to have my player follow it. I understand if I am asking to much but responses will be gratefully appreciated

Godot version 3.2
in Engine by (27 points)

1 Answer

+1 vote

You should use the captured mouse mode.

by (254 points)
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.