Legacy GM Views and mouse detection...

T

Thexel PIN

Guest
Hi, so in my game you control the player by moving the mouse. There are screen shakes, which I make by moving the view... This results in the player going crazy as the game starts detecting the mouse in different places. Is there a way to solve it? (BTW, in my game the views don't move for anything else other than screen shakes, so don't need to worry about view scrolling).
 
Kinda need more info to give a definitive answer. What obj is the view following? Is your character constantly moving based on mouse x/y or only on press?

Suggestions - change to a second view for the shake and then revert back. Or, use a variable for whether screen shake happening, and if it's true, don't allow character to follow the mouse
 
T

Thexel PIN

Guest
The view is not following any object. The player is constantly following the mouse, and even when it's not doing it, the player looks at the mouse. And I can't stop the movement of the player while the screen shakes for... reasons.
 
Top