Hmm, yet another problem. The cursor state does not change when right-clicking as the GUI is open. Is it possible that my conditional statement in the repeatedly_execute function, is blocking the on_mouse_click function?
Code: ags
function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
{
}
else if (button == eMouseLeft)
{
ProcessClick(mouse.x,mouse.y, mouse.Mode);
}
else // right-click, so cycle cursor
{
mouse.SelectNextMode();
}
}