Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stupot on Tue 07/04/2015 01:08:20

Title: Changing Mouse Graphic Temporarily While Hovering.
Post by: Stupot on Tue 07/04/2015 01:08:20
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
Title: Re: Changing Mouse Graphic Temporarily While Hovering.
Post by: Rhye on Tue 07/04/2015 01:49:29
Maybe something like this?

Code (ags) Select
//RepExec
{
  Hotspot *MouseOver;
  MouseOver=Hotspot.GetAtScreenXY(mouse.x, mouse.y);
if(MouseOver.ID!=0)
  //GraphicOver
  else
  //GraphicNotOver
}
Title: Re: Changing Mouse Graphic Temporarily While Hovering.
Post by: Stupot on Tue 07/04/2015 09:49:00
Thanks Rhye.
It works like a charm :-)