Im trying to change the cursor to Walk, this is what I'm using:
SetCursorMode(0);
However it sets it to the look cursor.
SetCursorMode(1);
This also sets it to the look cursor. All other other cursor number work correctly, except mode 0. Ive also tried MODE_WALK. Any Ideas?
If you tick "Hide player character" for a room, the walk mode is not accessible since there's no player character there that can be moved.
I see, but Im calling SetCursorMode AFTER I move to a room where the player is visible.
IE:
Start room 999 (Menu Screen)
Click New Game
Move to Room 1 (Actual Game with character)
SetCursorMode(0);
SetCursorMode(0); is called directly after the move to the new room - How can I achieve the same thing? (bare in mind I don't want the cursor to change to walk EVERY time someone enters the room.
NewRoom/Ex is a delayed-response command, meaning it gets executed when the script finishes.
So if you do
NewRoom(1);
SetCursorMode(MODE_WALK);
SetCursorMode is actually executed before the room has changed, and since the player character is hidden, it doesn't change to the walk mode.
What you can do is, on "Player enters screen (before fadein)" in room 1:
if (character[GetPlayerCharacter()].prevroom == 999) { // if coming from menu screen
SetCursorMode(MODE_WALK); // change to walk mode
}
Thanks :)