Cursor Changes

Started by metalmario991, Sun 19/07/2015 15:20:42

Previous topic - Next topic

metalmario991

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?

Khris

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".

SMF spam blocked by CleanTalk