So I am trying to put everything together and get the double click to skip to changing a room like in the monkey island games.
From what I understand I need to do something like this in the room script:
Code: ags
Then in my hotspot anyclick function I would have something similar to this?:
Code: ags
From what I understand I need to do something like this in the room script:
void repeatedly_execute_always()
{
if(DoubleClick.Event[eMouseLeft])
{
SkipUntilCharacterStops(player.ID)
}
}
Then in my hotspot anyclick function I would have something similar to this?:
function hDoor_AnyClick()
{
if (DoubleClick.Event[eMouseLeft])
{
player.ChangeRoom(6, 280, 155, eDirectionLeft);
}
else
{
player.Walk(282, 173, eBlock);
player.ChangeRoom(6, 280, 155, eDirectionLeft);
}
}