Inventory Item Hover

Started by Gurok, Tue 07/01/2014 23:53:45

Previous topic - Next topic

Gurok

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?
[img]http://7d4iqnx.gif;rWRLUuw.gi

Dualnames

Code: ags

function repeatedly_execute()
{
InventoryItem*item=InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
if (item!=null)
{
//animate cursor here
}
else 
{
//restore cursor graphic to normal
}
}
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk