Variables.

I am just getting used to using variables and codes but i dont understand fully for example:
first creta a variable called : canjump/// does it have to be called this or can it be aything else??
Collision -> top side -> platform -> Script Editor ->
canjump=1; // why do you declare it here and why, wat does iT DO ARGG!!
Draw actor ->
yvelocity += 1; // i dont get why you put the gravity here in draw actor and not in create actor, and wat does this line of script (math) actually say.(actually present your reply in a way a 14 year old can understand please)
Key down -> space -> repeat: NO -> Script Editor ->
if(canjump==1)
{
yvelocíty = - 15;
canjump = 0;
}
//// wat the --- is this code telling me help what teh --- i know what is making the animation do but without knowledge
of knowing how it works ill neva be able to create harder fucking games!!!!!!!!!
first creta a variable called : canjump/// does it have to be called this or can it be aything else??
Collision -> top side -> platform -> Script Editor ->
canjump=1; // why do you declare it here and why, wat does iT DO ARGG!!
Draw actor ->
yvelocity += 1; // i dont get why you put the gravity here in draw actor and not in create actor, and wat does this line of script (math) actually say.(actually present your reply in a way a 14 year old can understand please)
Key down -> space -> repeat: NO -> Script Editor ->
if(canjump==1)
{
yvelocíty = - 15;
canjump = 0;
}
//// wat the --- is this code telling me help what teh --- i know what is making the animation do but without knowledge
of knowing how it works ill neva be able to create harder fucking games!!!!!!!!!