Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: pakolmo on Sun 27/11/2016 23:15:09

Title: My game start with waiting cursor
Post by: pakolmo on Sun 27/11/2016 23:15:09
I need to change my initial cursor. It is a wait cursor in all my intro screens.

I need other cursor because I want to do a click on screen and then change the room.
Title: Re: My game start with waiting cursor
Post by: tor.brandt on Sun 27/11/2016 23:21:23
Use
Code (ags) Select
mouse.Mode = eModeWalk
where you replace "eModeWalk" with whivhever mode you want to switch to.
Title: Re: My game start with waiting cursor
Post by: pakolmo on Sun 27/11/2016 23:37:53
No, it doen't work.

I think the problem is for using wait functions...

Code (AGS) Select


Wait (400);
Title: Re: My game start with waiting cursor
Post by: NickyNyce on Sun 27/11/2016 23:50:22
What exactly is that Wait(400) used for?

It's also not a wait function. The function is what you're placing your wait command into.
Title: Re: My game start with waiting cursor
Post by: tor.brandt on Mon 28/11/2016 00:08:08
Quote from: pakolmo on Sun 27/11/2016 23:37:53
No, it doen't work.

I think the problem is for using wait functions...

Code (AGS) Select


Wait (400);


The mouse.Mode command WILL change the mouse mode if used correctly.
The wait command has nothing to do with the mouse mode as such, but while the wait is running the interface is disabled, including the cursor.

Could you post the script where you are attempting to change the mouse mode?
Title: Re: My game start with waiting cursor
Post by: pakolmo on Mon 28/11/2016 00:11:02
I solved it with: StartCutscene(eSkipAnyKeyOrMouseClick)
Title: Re: My game start with waiting cursor
Post by: Khris on Mon 28/11/2016 00:11:49
You can change the Wait cursor's image in your room's room_Load():
  mouse.ChangeModeGraphic(eMouseWait, 13);

Note that all these commands can be found in the manual, which you're supposed to read before opening forum threads.
Title: Re: My game start with waiting cursor
Post by: pakolmo on Mon 28/11/2016 00:26:51
Yes. It worked.

Code (ags) Select


Mouse.ChangeModeGraphic(eModeWait, 2055);


But, how I can choose the changeroom?
If I do a click I want a room. If I wait, I want other room.
Title: Re: My game start with waiting cursor
Post by: Khris on Mon 28/11/2016 12:31:13
If this is about skipping the introduction sequence, then StartCutscene is what you need.
Once the stated skip key is clicked / pressed, every command will run "super fast" until EndCutscene is found, essentially jumping over the intro.

Changing the look of the Wait cursor is more or less independent of that, but you can of course call it before StartCutscene to change the look of the wait cursor during the cutscene.