No, variables in math class mean an unknown number (usually represented with a letter: x,y,etc.) but in computer programming, variables are something we store things in (boxes).
When creating a variable, it can either be for all sprites or just one.
A variable can store one values at a time.
The following code does nothing because they cant just switch without having another variable to store the values because a variable can only store one value at a time.
In this code, temp variable switched with value 1 and value 1 switched with value 2 and value 2 switched with temp.
Click HERE to return to homepage.