Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: eduarazo on Wed 03/12/2008 09:47:46

Title: ¿How to change pointer icon over hotspots or objects?
Post by: eduarazo on Wed 03/12/2008 09:47:46
I use the Sierra interface and I think it have a big inconvenient, cause the player don't know when something in the screen is interactive (there's no text displaying "Door" or "Key"). I think a possible solution is to change the pointer icon (the color, for example) when it's over a hotspot or object ¿Anyone nows how can I do it?

Also I'm interested in knowing how can I animate a secondary character continously (for example, a sleeping view made with 2 sprites) but at the same time allowing the playable character to move as normally.

Thanks  ;D
Title: Re: ¿How to change pointer icon over hotspots or objects?
Post by: Dualnames on Wed 03/12/2008 10:51:24
In order to have the player know if something interactable is below the mouse either, go and add a view at the mouse cursors. Via the panel. Select a mouse cursor and set animate when over something to true then set a view.

Or you can add GUI and put a label having as text this :@OVERHOTSPOT@

As for the character, put this:
cCharacter.LockView(View);
cCharacter.Animate(View of choice,cCharacter.Loop,5,eNoBlock,eForwards);

Title: Re: ¿How to change pointer icon over hotspots or objects?
Post by: eduarazo on Wed 03/12/2008 15:52:59
Thanks a lot!
Title: Re: ¿How to change pointer icon over hotspots or objects?
Post by: Khris on Wed 03/12/2008 21:23:22
If you want more control, you can use GetLocationType (http://www.adventuregamestudio.co.uk/manual/GetLocationType.htm).

To animate a character continuously, I'd use an IdleView and a delay of 0.