bsabiston
Member
I'm trying to use the mouse_button constant to detect when the mouse is pressed, but it's reporting 0 when my left mouse button is definitely pressed down. It's supposed to always report which button is pressed, isn't it?
I have walk direction buttons which react to Mouse Down. Sometimes, when the player walks into a door, I change rooms. In that case, I want to wait until the mouse is released, so that the player does not immediately continue walking when they enter the new room.
I believe this used to work. But now, I'm getting the mouse down events passed to the buttons, but in my script where I wait for the release, 'mouse_button' reports 0. Does this 'mouse_button' get reset to 0 sometimes even when the mouse is still pressed down???
EDIT: I also tried the 'mouse_clear' function to reset the mouse so that it would not keep reporting mousedown. But that doesn't appear to work either?
I have walk direction buttons which react to Mouse Down. Sometimes, when the player walks into a door, I change rooms. In that case, I want to wait until the mouse is released, so that the player does not immediately continue walking when they enter the new room.
I believe this used to work. But now, I'm getting the mouse down events passed to the buttons, but in my script where I wait for the release, 'mouse_button' reports 0. Does this 'mouse_button' get reset to 0 sometimes even when the mouse is still pressed down???
EDIT: I also tried the 'mouse_clear' function to reset the mouse so that it would not keep reporting mousedown. But that doesn't appear to work either?
Last edited: