This function will return true if the mouse button being checked is held down or false if it is not. You supply the mouse button to check from one of the following constants:
Constant Description mb_left The left mouse button mb_middle The middle mouse button (this may not be valid for all target platforms) mb_right The right mouse button mb_none No mouse button mb_any Any of the mouse buttons
Argument Description numb Which mouse button constant to check for.
instance_create_layer(mouse_x, mouse_y, "Effects", obj_Star);
The above code will check for the left mouse button and every step that it is held down will create an instance of the object indexed in "obj_Star".