EVENT_CLICK
ENABLE_CLICK
Clicked on with the left mouse button.
Remarks:
Mouse events will only be triggered
on level entities
that are within a distance given by the predefined mouse_range variable from the camera position.
Example:
function mouse_event()
{
if (event_type == EVENT_CLICK)
{
snd_play(ping,100,0);
}
}
action sound_on_click()
{
my.emask |= ENABLE_CLICK; // lite-C
my.event = mouse_event;
}
See also:
event, EVENT_TOUCH, mouse_range, on_mouse_left, on_click
► latest version online