a variable is basically a container, and a label
you can create a "container" and "label" it
createing a variable called "kill" will do nothing by itself, so you need to apply it to something
exmple
in KEY DOWN NO REPEAT!! --> script editor
kill=0;
then you can give that "container" a "label" to anythng to do something
if (kill==0)
{
// pick a sound to play... this is the label
}
so every time you you press the button you selected, kill =0 which will play a sound
if you want to get more complex, you can create a toggle by doing this
in KEY DOWN DO NOT REPEAT!!--> script editor
kill=0;
if (kill==0)
{
kill=1;
// do something
}
else
{
kill=0;
//do something
}
this means every 2 times you press the buton, the sound will only be heard once, hence the "toggle"
this is what a variable means to me, others might describe it differently, but the mechanics are the same
hope this helped
