balala wrote:In a programming language (what lua is) in such cases the OldVar should be created as an array. You can imagine it as a matrix.
For specific help, please provide us the whole lua code.
I hope your eyes are ready for what is coming because I'm sure what I'm doing is awful.
The idea is to create a lua that takes the position of the mouse (at the moment only the X dimension of the mouse) and store them in a list of variables as the mouse moves around, then take those variables and see if they match the equation of a shape, for example circle. That is another part that I will figure out, but now I just want to take those stored variables (OldVar1, OldVar2,....) and manage them with an "If"
(You should hold down control and move the mouse around to write the ones you need.)
I know it's complicated so if you want me to explain something more, tell me.
This is all in order to create gestures while holding down the Control button and moving the mouse around.