Automatic Cursor Change At Game Start

Started by PsychicHeart, Thu 10/11/2005 03:47:22

Previous topic - Next topic

PsychicHeart

Hey y'all.
What is the script command for an Automatic Cursor Change?
I knew this before, but i can't remember now.
Formerly known as Flukeblake, Flukezy etc.

Candle

I use :
mouse.SaveCursorUntilItLeaves();
mouse.Mode = eModeTurn;

Ashen

It pretty much depends on how/when you want the change to happen.
Candle's script can work - depending, as I say, on what you want, and where you put it.
I know what you're thinking ... Don't think that.

PsychicHeart

well, as you know, the first cursor when playing an AGS game is the Walk Cursor. I do not need the Walk Cursor for my game so, naturally, the Walk Cursor should change to the cursor i want (Interact) as soon as the game starts. Possible?
Formerly known as Flukeblake, Flukezy etc.

Ashen

1. mouse.Mode = eModeInteract in on_game_start
and/or
2. Deselect 'Standard mouse mode' for Walk to, and it should never appear, even when cycling the modes with right click (if you still use that).

Probably just 2 will do.
I know what you're thinking ... Don't think that.

monkey0506

Code: ags
if (mouse.Mode == eModeWalk) mouse.Mode = eModeInteract;


Just put that line into game_start() (in the main global script).  That should do it.  And then if you put the same thing into the repeatedly_execute() function then it will prevent the game from restoring the mouse cursor to the walk cursor.

SMF spam blocked by CleanTalk