You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2024. It is now read-only.
JXSnack edited this page Mar 12, 2023
·
4 revisions
Creating variables
Creating variables is pretty easy. In your script.json you can see global_variables. In global_variables you can add something like "foo": 5. In our case the variable name is "foo" and the value is 5. Ofcourse you can also do a string like this "foo": "Hi, I'm a string!".
Example
"global_variables": {
"foo": 5,
"faa": "I'm a string!"
},
Reading variables
Reading variables is actually easier than u think!
If you want to see your variable in your game, you can (we will use "foo" as variable example) just do {@foo} (this works everywhere in the editor!).
You want to add and subtract from your variables? Check out functions and doable