Login

Fancade Wiki

Updated page to better match standarts

... ...
@@ -6,7 +6,7 @@ You can get/output the value from a variable with the same name using the [[Get
6 6
7 7
[[uploads/Screenshot_2021_1022_011555_com.martinmagni.fancade.png]]
8 8
9
### Globals
9
## Global variables
10 10
11 11
Let's say you have a script inside a block that sets a variable to 1. And you have a script outside of the block to inspect that variable.
12 12
... ...
@@ -22,7 +22,7 @@ Note that two variables with the same name with one being a global will not coun
22 22
23 23
[[uploads/Screenshot_2021_1022_012758_com.martinmagni.fancade.png]]
24 24
25
### Saved variables
25
## Saved variables
26 26
27 27
<<SeeAlso(/Script/Saved Variables)>>
28 28
... ...
@@ -32,6 +32,6 @@ Saved variables were added in Fancade 1.6. Like global variables, you can make a
32 32
33 33
As the name implies, saved variables persist their value from one game session to the next. This is true whether the user ends the game by winning, dying, or simply pausing and returning to the menu.
34 34
35
Additionally, saved variables are shared across all levels in the same game. This allows a player's actions in one level to affect their gameplay in other levels, and to keep track of purchases from the [Menu Item](https://www.fancade.com/wiki/Blocks/Menu%20Item.md) block.
35
Additionally, saved variables are shared across all levels in the same game. This allows a player's actions in one level to affect their gameplay in other levels, and to keep track of purchases from the [[Menu Item]] block.
36 36
37 37
Saved variables currently only have number type and there can be up to 64 saved variables per game.
Fancade Wiki