Hello all, I hope that everything is well!
I’m working on a functionality that freezes the character while a dialogue box pops up. I am using Platypus for movement and this is what I tried:
-
I created variable: canmove
-
I add variable canmove to all of the movement related Platypus lines: if self.input_state[LEFT] and canmove then…
-
On init I set canmove to true
-
When the dialogue box pops up I set canmove to false
This all works just fine until I set canmove to true again. Once canmove is set to true again the character begins to move without any input being put in by the user. It only stops once input is put in again. This code is also quite laggy. I was wondering if there is a better and more efficient way to do this.
script.txt (4.9 KB)
Here is the script. (sorry about the sloppiness)
Thanks!