Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nixxon on Thu 12/11/2020 04:04:29

Title: Disable Double Click Walk Speed (SOLVED)
Post by: Nixxon on Thu 12/11/2020 04:04:29
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) Select
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) Select
  // 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.