I’m developing a game with isometric view. In this game, the character is supposed to follow the mouse, looking at it’s position at every moment.
My issue is that following the mouse feels rather like a suggestion to the game. The character does not look at the exact position of the mouse. (see video)
Double-check how you’re calculating the angle. The math.atan2 function should work, but make sure you’re using the correct axes. You may need to adjust the parameters or offsets.
If this doesn’t work, make sure that the followMouse function is being called continuously, as in the RenderStepped event. This will keep updating the character’s position in real time as the mouse moves.
Thanks both of you for these solutions, however, I’ve decided to find another approach for the game and now the character won’t follow the mouse, therefore I’m closing this topic.