Setting the cursor default

Started by Ghostlady, Wed 16/03/2005 22:46:05

Previous topic - Next topic

Ghostlady

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.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Candle

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 .

Barbarian

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:

Code: ags

SetCursorMode(6);
SetMouseCursor(6); 


That might do the trick for ya.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

SMF spam blocked by CleanTalk