Ashley and Tom work hard on not only Construct 2 but something just as magical...
https://www.scirra.com/manual/1/construct-2
...and if you type "Local Variable" to search in the Manual you get ....
https://www.scirra.com/manual/83/variables
...and if you scroll down to where it says "Static and constant variables" you get...
"By default, local variables reset to their initial value whenever entering their scope (usually every tick), like local variables in programming languages. If the variable is marked static in the Event Variable dialog it will persist its value permanently, like a global variable."
Good luck. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile">