Problem with SaveCursorUntilItLeaves();

Started by , Fri 23/02/2007 03:24:00

Previous topic - Next topic

Dag

When i use the function: SaveCursorUntilItLeaves(); to change my mouse cursor-mode while over a hotspot, it does not fully work.

I write in the script under "mouse moves over hotspot"

mouse.SaveCursorUntilItLeaves();
mouse.Mode = eModePickup;

and expect my cursor to change to pickup-mode while over the hotspot in question.
This sort of happens... but not like it should. Quite often the mode does not immediately change when over the hotspot, but i gotta circle the cursor over the hotspot area for a while before it does.

Looks very much like a bug, but i havent found anyone else that has encountered the same problem.
How do i get this function to work properly?
I am using ags v2.72. Is this a known bug for this version, or am i doing something wrong?


Scorpiorus

It may probably have something to do with the Mouse moves over hotspot interaction event is only triggered while you're actually moving the mouse.

Another possibility is that the script is being blocked at the moment it triggers, so your change cursor mode script does not run instantly, but is delayed until the script thread is free and can run it.

SMF spam blocked by CleanTalk