Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Skele on Sat 13/05/2017 02:48:04

Title: Any way to highlight hotspots?
Post by: Skele on Sat 13/05/2017 02:48:04
Hello,

I added a few hotspots in my game, which are mostly just in the background (overt the sky and some roads etc.)
so it's not possible for the player to know that they can look there because it's just part of the background.

Is there any way to highlight the hotspot, or maybe make the coursor change colour
when it's over a hotspot or any other way to make the player know that they can look at that part of the background?

greetings
Title: Re: Any way to highlight hotspots?
Post by: Matti on Sat 13/05/2017 12:02:38
Take this example from the manual:
Code (ags) Select
if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) == hDoor)
  Display("Mouse on the door");


Instead of displaying text you can of course change the cursor sprite or whatever you prefer.
Title: Re: Any way to highlight hotspots?
Post by: Cassiebsg on Sat 13/05/2017 12:31:01
If all you wish is just for the cursor mouse to change color/sprite/animate, then create the appropriate sprite how you which it to look when it is over a hotspot/object/character that youu can interact with. Then create a view with it.

Now, open your mouse cursor mode and change AnimateOnlyOnHotspot to True, and place the view number where it says View. You'll need to do this for all cursor modes that you wish to animate.
Title: Re: Any way to highlight hotspots?
Post by: Skele on Sat 13/05/2017 22:16:03
Quote from: Cassiebsg on Sat 13/05/2017 12:31:01
If all you wish is just for the cursor mouse to change color/sprite/animate, then create the appropriate sprite how you which it to look when it is over a hotspot/object/character that youu can interact with. Then create a view with it.

Now, open your mouse cursor mode and change AnimateOnlyOnHotspot to True, and place the view number where it says View. You'll need to do this for all cursor modes that you wish to animate.

Oh yes that was exactly what I wanted to do,
thank you a lot!