Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Sun 18/02/2018 16:32:49

Title: Can't use Mode 10
Post by: Slasher on Sun 18/02/2018 16:32:49
Hi

I have added additional mouse modes 8 and 9 and they work fine...

However, I need custom mode 10 though ags only supports 0-9 normally afaik...

I do get it to show the cursor in-game but its mode name does not show up in hotspot/object properties so I can't add interactions..
A text label indicates the selective mode is true.

Is there a sure fire way to use mode 10?

cheers

Title: Re: Can't use Mode 10
Post by: Crimson Wizard on Sun 18/02/2018 16:42:23
For additional custom modes you may use "Any click on object" event, and in the event function check "if (mouse.Mode == eWhateverMode)" to detect the click with your custom mode.
Title: Re: Can't use Mode 10
Post by: Slasher on Sun 18/02/2018 16:53:25
Hi Crimson,

I did just that but it carried on and ran the next mode interaction...

cheers

OK, got it working. Not quite sure what happened before >:(
Title: Re: Can't use Mode 10
Post by: Crimson Wizard on Sun 18/02/2018 17:05:23
Quote from: Slasher on Sun 18/02/2018 16:53:25
I did just that but it carried on and ran the next mode interaction...
Not sure I understand you, what exactly happened, did it perform actions for mode10? What is "next mode interaction"?


E: One thing I may add, is that if your script calls ProcessClick with eWhateverMode, while your mouse.Mode is actually different, then ofcourse you need to change the condition. Maybe store the actual mode in a variable, or set mouse.Mode before calling ProcessClick to eWhateverMode and return it back later.


Quote from: Slasher on Sun 18/02/2018 16:53:25
OK, got it working. Not quite sure what happened before >:(

Oh, ok.