Ok I think it was a bit confusing so now "Walk to" cursor is back to normal and cursor 9 is now "Go to"
What I'm aiming for is to be able to click on object/hotspot
the character then walks to object and preforms the interaction in this case "Go to".
As an example under "Got to" interaction he might display a message or change room.
I'm trying to set it up so that it has the same effect as say walking onto a region.
Code: ags
What I'm aiming for is to be able to click on object/hotspot
the character then walks to object and preforms the interaction in this case "Go to".
As an example under "Got to" interaction he might display a message or change room.
I'm trying to set it up so that it has the same effect as say walking onto a region.
else if (button==eMouseLeft) {
Ã, if (mouse.Mode == eModeWalkto) {
Ã, Ã, if (IsInteractionAvailable(mouse.x,mouse.y, eModeGoto) == 1){
Ã, Ã, Ã, ProcessClick(mouse.x, mouse.y, eModeWalkto); // walk to object
Ã, Ã, Ã, ProcessClick(mouse.x, mouse.y, eModeGoto); // perform action
Ã, Ã, }
Ã, }
Ã, else ProcessClick(mouse.x, mouse.y, eModeWalkto);
Ã, ProcessClick(mouse.x, mouse.y, mouse.Mode);
}