(adsbygoogle = window.adsbygoogle || []).push({});
Hello ngu,
This will be Variables , then i will make another thread with maths of the script and....
So 1st what is a variable?
A variable is something that is used in several ways, but in all cases they are used to store some data for the duration of the game.
With what i can make a variable?
You can make a variable with :
ntegers, floats, entities, strings, arrays and booleans...
A simple variable:
variable = data;
This variable can be used in the current function and any function that passes it as an argument, or is called on it (so it'd be used as 'self'

.
Variables can be global (which can be used in all threads without needing to be called) by using the:
level.variable = data;
or they can be assigned to entities individually:
entity.variable = data;
This is like player.health and level.teamBased (boolean).
This tutorial is finish.
I hope you enjoy it,
Bloodfocus.