Local and global variables in Construct 2

Global Variables

Global variables can be accessed at every event sheet. No matter if the global variable was declared in the same event sheet or not. There are two kinds of these variables

  • Text variable
  • Number variable

Note: Please do not delete existing variables if you don’t know what you are doing!

Local Variables

Those variables are only accessably from actions and events underneath of the local variable’s declaration.

For instance the image above. You cannot access the local variable imLocal at the On start of layout trigger, however underneath of the declaration.

To learn more about the variables please check the manuel.

Updated on February 26, 2019
Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Visist our Forum!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.