Hi,
My goal is: when you press the left arrow key, an instance is created randomly to one of two specified positions.
I use a global variable and a local variable. The global variable defines the left arrow key has been pressed, and the local variable is used to choose one of two positions.
I added a "reset global variables" event. Despite this, it seems that the time between the change in value of the variable and reset is long enough to create multiple instances instead of one. I do not understand why.
Here you can download the if you want to take a look.
[www.norab.fr/images/reset_test.capx]
Thank you for taking the time to read my rough english.