Hi,
I want the cursor to change its graphic to Look At when its over any hotspot.
I put this in the global script in repeatedly_execute:
Code: AGS
This works fine, however, if I interact or look at a hotspot I make the character walk to it first (with eblock on) but I don't get the wait cursor while the character moves. It just keeps the Walk graphic (or the Look At graphic it it's over the hotspot).
How can I fix that?
And is there another better global way to get the cursor to change over hotspots?
Edit: Oh, and just to be clear. I have set the left mouse button to process "eModeLookAt" if the cursor is over a hotspot and to "eModeWalkto" otherwise. The right mouse button is set to "eModeInteract". So, right now when I have the cursor over a hotspot, the graphic changes to Look At. If I left-click or right-click the appropriate even happens except I don't get the Wait cursor while the character is moving with Character.walk
I want the cursor to change its graphic to Look At when its over any hotspot.
I put this in the global script in repeatedly_execute:
if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) != hotspot[0])
{
mouse.SaveCursorUntilItLeaves();
mouse.UseModeGraphic(eModeLookat);
}
This works fine, however, if I interact or look at a hotspot I make the character walk to it first (with eblock on) but I don't get the wait cursor while the character moves. It just keeps the Walk graphic (or the Look At graphic it it's over the hotspot).
How can I fix that?
And is there another better global way to get the cursor to change over hotspots?
Edit: Oh, and just to be clear. I have set the left mouse button to process "eModeLookAt" if the cursor is over a hotspot and to "eModeWalkto" otherwise. The right mouse button is set to "eModeInteract". So, right now when I have the cursor over a hotspot, the graphic changes to Look At. If I left-click or right-click the appropriate even happens except I don't get the Wait cursor while the character is moving with Character.walk