Problem with Mouse modes!

Started by Marr, Tue 25/05/2010 16:04:37

Previous topic - Next topic

Marr

Hello,

I'm fairly new to AGS, but I've been doing a lot of reading up and snooping around for code related issues. There is one, however, that has me completely stumped and unable to find an answer to in the manual or the forums (I'm hoping I haven't just missed it!).

For my game I only want there to be two mouse modes: Pointer and Interact. I've disabled all the other mouse modes using the mouse.DisableMode functions and that seems to work fine. But, here is my dilemma. When the game starts up, there is no cursor. At all. I have to scroll the wheel on my mouse downwards for it to show up the Interact mouse mode. Cycling through results in about two more blank cursor modes before it gets back to the Interact one. The Pointer mouse mode is entirely skipped out. I also checked to make sure I hadn't disabled it by accident.

Does anyone have a clue what's up or a way to get around the issue?

Also, is there a way to set the mouse to a specific mode upon start up? E.g. have the Interact cursor as the default cursor at the start of the game.

Like I said, I've tried to find a solution to this on my own but have had no luck. Any help would be appreciated.

Cheers, AGS forum goers!

Khris

Inside game_start, put
  mouse.Mode = eModeInteract;
How did you disable the cursors? It sounds like you just changed the image property to a blank sprite slot. Cursors have a "standard cursor mode" property which you need to set to false, then e.g. SelectNextMode() will skip them.

Check on_mouse_click for the piece of code that'll select the previous/next cursor mode.

Marr

Quote from: Khris on Tue 25/05/2010 16:30:20
Inside game_start, put
  mouse.Mode = eModeInteract;
How did you disable the cursors? It sounds like you just changed the image property to a blank sprite slot. Cursors have a "standard cursor mode" property which you need to set to false, then e.g. SelectNextMode() will skip them.

Check on_mouse_click for the piece of code that'll select the previous/next cursor mode.

Thank you so much! Lord knows what I did, but your help has scrubbed out all the issues.

SMF spam blocked by CleanTalk