Hi, I want to toggle speed of object on tapping anywhere on screen. Initially I have global variable "speed" set to 200. I wrote an event like
1. On tap gesture & Speed = 200 --> set speed to 100
2. On tap gesture & Speed = 100 --> set speed to 200
It seemed to do nothing, then I wrote
1. On tap gesture & Speed = 200 --> set speed to 100
2. On tap gesture & Speed = 100 --> set speed to 300
Now on one single tap gesture, the speed is being set to 300.
I wrote the same thing with Keyboard:any key pressed. The same thing is happening. Can anyone explain whats happening here and a work around.