Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Wed 16/03/2005 22:46:05

Title: Setting the cursor default
Post by: Ghostlady on Wed 16/03/2005 22:46:05
If I want to set the default cursor to the arrow or #6 so that when I come into the game it will be showing an arrow instead of the eye, how would I do that?  Help is appreciated.
Title: Re: Setting the cursor default
Post by: Candle on Wed 16/03/2005 22:54:46
SetCursorMode
SetCursorMode(int new_mode)

Changes the mouse cursor mode to NEW_MODE. The number you pass can be obtained from the CURSORS tab of the Room Editor. This function changes both the appearance of the cursor and the mode used if the player clicks on a hotspot.
Example:

SetCursorMode(MODE_USE);

will change the cursor mode to USE MODE.

SetDefaultCursor
SetDefaultCursor()

Changes the appearance of the mouse cursor to the default for the current cursor mode. Use this to restore the cursor picture after you changed it with the SetMouseCursor function.

Under Mouse functions in help file .
Title: Re: Setting the cursor default
Post by: Barbarian on Wed 16/03/2005 22:57:32
On the room you want to set the cursor mode to something different, on the "Before Fadein" option, you can add a script with the following commands:


SetCursorMode(6);
SetMouseCursor(6);


That might do the trick for ya.