Can't use Mode 10

Started by Slasher, Sun 18/02/2018 16:32:49

Previous topic - Next topic

Slasher

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


Crimson Wizard

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.

Slasher

#2
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 >:(

Crimson Wizard

#3
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.


SMF spam blocked by CleanTalk