My game start with waiting cursor

Started by pakolmo, Sun 27/11/2016 23:15:09

Previous topic - Next topic

pakolmo

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.

tor.brandt

Use
Code: ags
mouse.Mode = eModeWalk

where you replace "eModeWalk" with whivhever mode you want to switch to.

pakolmo

No, it doen't work.

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

Code: AGS


Wait (400);

NickyNyce

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.

tor.brandt

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


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?

pakolmo

I solved it with: StartCutscene(eSkipAnyKeyOrMouseClick)

Khris

You can change the Wait cursor's image in your room's room_Load():
Code: ags
  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.

pakolmo

Yes. It worked.

Code: ags


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.

Khris

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.

SMF spam blocked by CleanTalk