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.
Manuel

Aktualisiert am Februar 26, 2019

War dieser Beitrag hilfreich?

Verwandte Artikel

Hinterlasse einen Kommentar

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.