Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gurok on Tue 07/01/2014 23:53:45

Title: Inventory Item Hover
Post by: Gurok on Tue 07/01/2014 23:53:45
Hello,

I'm using AnimateOnlyOnHotspots combined with a single frame view to make my cursor glow when the user mouses over a hotspot, character or object. Is there a nice way to make my cursor glow when the user mouses over an inventory item too?
Title: Re: Inventory Item Hover
Post by: Dualnames on Wed 08/01/2014 05:18:17
Code (ags) Select

function repeatedly_execute()
{
InventoryItem*item=InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
if (item!=null)
{
//animate cursor here
}
else
{
//restore cursor graphic to normal
}
}