Disable Double Click Walk Speed (SOLVED)

Started by Nixxon, Thu 12/11/2020 04:04:29

Previous topic - Next topic

Nixxon

Hey Gang,

I am trying to momentarily disable the increased walk speed whilst using double click, set by default with the thimbleweed GUI.

I've found the below in the help file.

I am unable to find any reference to that code in any of the scripts. Trying to add the code and speed value into my room function would not compile.

Code: ags
Verbs.SetDoubleClickSpeed
void Verbs.SetDoubleClickSpeed(int speed)
Defines the double click speed


Ultimately, I would like to disable the function for a particular portion of the game.

Any help would be greatly appreciated!

EDIT.

Oops, not sure how I didn't see the shiny Thimbleweed folder under the scripts tabs - duh.

I've found this and have changed the variable to false, which has worked. It would be nice to be able to re-enable the function during a room script though. not sure if possible?

Code: ags
  // Character speed is doubled on doubleclick
  Verbs.VerbGuiOptions[eVerbGuiRunOnDoubleClick] = false;



EDIT 2.

Well it looks like you can! Using the above line in the room scripts works fine.


SOLVED - Please delete or leave for future reference.

Cheers.

SMF spam blocked by CleanTalk