Variables overview popularité : 89
Global Variables popularité : 91
Local Variables popularité : 91
List Variables popularité : 92
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Slide 10
IMAGE OR CARROUSEL for section header You successfully read this important alert message.

TEXTE AVANT FILTRAGEFor example, let’s say you want to give each character of your game a unique name. You can create a Local Variables component on each one of them and create a local variable called name.
When accessing it, each character will return its own unique name.
Local Variables work pretty much like Global Variables. The difference is that they live inside the scope of a game object, not project wide.

Creating and Editing

To create a local variable you can add the Local Variables component to any game object. Alternatively you can create one using the Game Creator Toolbar option to create a new instance.

Notice there’s a UID field at the end of the component. This UID is used by the save-system to keep track of the different variables between play sessions.
Every time you create a Local Variable, a unique UID is generated. You have to bear in mind though that when duplicating a Local Variable, this value will stay the same and two Local Variables will exists with the same UID. In that case, click on the R button to generate a new unique button.
It is specially important that you don’t modify the UID after releasing your game. Doing so will reset the player’s game prTEXTE APRES FILTRAGE
-  : liste tous les intertitres de l’article
-  : liste tous les documents de l’article sous forme de mini-vignette non cliquables. Avec deux paramètres :

width : largeur de la vignette en px,
raz : nombre de vignette sur une seule ligne. Juste après la Nième(raz) vignette, un
est inséré.

>