Changing Mouse Graphic Temporarily While Hovering.

Started by Stupot, Tue 07/04/2015 01:08:20

Previous topic - Next topic

Stupot

I'm sure I'm being thick, but how do I get the mouse cursor to change graphic over a hotspot and ONLY on the hotspot? It's one thing getting to to change over the hotspot, but when I roll off the hotspot again I want it to automatically go back to the original graphic.

I know this is easy but I just can't seem to work it out.
Cheers x

Rhye

Maybe something like this?

Code: ags
//RepExec
{
  Hotspot *MouseOver;
  MouseOver=Hotspot.GetAtScreenXY(mouse.x, mouse.y);
if(MouseOver.ID!=0)
  //GraphicOver
  else
  //GraphicNotOver
}

Stupot


SMF spam blocked by CleanTalk