Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Agent X on Thu 15/10/2009 04:17:36

Title: change mouse cursor on rollover of objects and hotspots
Post by: Agent X on Thu 15/10/2009 04:17:36
Hey guys, this might seem like a simple question but i'm trying to create a simple rollover effect on hotspots and objects as used in the original Sam and Max. when the player rolls the mouse cursor over the object/hotspot it should change colour slightly to show that the object/hotspot is interactive. I want this to be the same for the entire game so i'm not sure if it should go in the global script?

any shove in the right direction would be appreciated :P
Title: Re: change mouse cursor on rollover of objects and hotspots
Post by: Matti on Thu 15/10/2009 04:24:31
Yeah, the global script is the right place for that.

Sorry, I'm too lazy and tired right now to post some code but the forum search should be of great help since this is a question that has been asked about a hundred times before...
Title: Re: change mouse cursor on rollover of objects and hotspots
Post by: discordance on Thu 15/10/2009 04:28:27
You don't really need any code. You can set that from the mouse modes node. Just choose the cursor, set a view, and set "Animate" and "Animate only over hotspots" to true.
Title: Re: change mouse cursor on rollover of objects and hotspots
Post by: Agent X on Fri 16/10/2009 07:33:54
Thanks heaps for that, i realised that this had probably been asked before but I couldn't find anything in the search area.
Title: Re: change mouse cursor on rollover of objects and hotspots
Post by: discordance on Fri 16/10/2009 22:25:35
I can never find anything in there either. I tend to just scour the manual. You'd be surprised how much stuff you can learn just poking through that humble document.