Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: metalmario991 on Sun 19/07/2015 15:20:42

Title: Cursor Changes
Post by: metalmario991 on Sun 19/07/2015 15:20:42
I am working on the cursors for my game when I was wondering, how do I program it so the cursor changes on stuff you can interact with?
Title: Re: Cursor Changes
Post by: Khris on Sun 19/07/2015 18:51:08
Cursor's have a built-in mechanism for this; set their Animate property to a new View containing only the active image in the first loop's first frame, then set their AnimateOnlyOnHotspots to true.

If you want to change cursors based on the type of active area, the basic idea is to use GetLocationType() inside the GlobalScript's repeatedly_execute() function; you can also use Hotspot/Object/Character.GetAtScreenXY().

Asked and answered dozens of times already though; try searching the beginner's tech forum topics for "cursor change".