Director - Lingo syntax Cursor commands
Make the cursor invisible
Example syntax:
_player.cursor(200) -- sets the cursor to be invisible
This script goes on a frame (in the scripting channel):
on exitFrame(me) -- this script sets the cursor to be invisible when Director exits the frame
_player.cursor(200)
end
Make the cursor go back to normal (black arrow)
Example syntax:
_player.cursor(-1) -- sets the cursor to be the black arrow
This script goes on a frame (in the scripting channel):
on exitFrame(me) -- this script sets the cursor to be normal when Director enters the frame
_player.cursor(-1)
end
Rollover a sprite, and the cursor changes to a clicking finger
(to help indicate the sprite is clickable)
Example syntax:
_player.cursor(280) -- sets the cursor to be the clicking "finger"
This script goes on a sprite:
on mouseEnter(me) -- the cursor is the finger when the mouse rolls over the sprite
_player.cursor(280)
end
on mouseLeave(me) -- the cursor goes back to normal when the mouse leaves the sprite
_player.cursor(-1)
end
Other possibly useful cursor settings:
260 is the Hand cursor
290 is the Closed Hand cursor
291 is the No-Drop Hand cursor
256 is the Pencil cursor
257 is the Eraser cursor