-
-
Notifications
You must be signed in to change notification settings - Fork 19
mouse_check_button_released
drewmccluskey edited this page Feb 12, 2019
·
4 revisions
Returns if a mouse button is released
mouse_check_button_released(button)| Argument | Description |
|---|---|
MouseButtons button |
The mouse button being checked if currently released |
Returns: bool
This function is like mouse_check_button() but this will run code only once when you release the mouse button, and not all the steps after of the button not being pressed.
if (mouse_check_button_released(MouseButtons.mb_left))
{
room_restart();
}This code will restart your room when you release the left mouse button.
Back to Mouse