Posted By: BastovBros
variables and operators - 07/07/09 21:12
Hello, I am a bit confused with using variables and operators... I don't see the particular difference between them and don't understand why some expressions work with operators and do not work with variables.
Take a look at this code:
...
var maxdistance = 10;
var countdistance ; // or var countdistance = 5;
action move()
{...
maxdistance > countdistance;
...}
And it constantly shows an error when I try to run the game. Variables can't be compared? Only maxdistance = countdistance works....
Sorry for this silly newbie question
Any explanation appreciated...
Take a look at this code:
Quote:
...
var maxdistance = 10;
var countdistance ; // or var countdistance = 5;
action move()
{...
maxdistance > countdistance;
...}
And it constantly shows an error when I try to run the game. Variables can't be compared? Only maxdistance = countdistance works....
Sorry for this silly newbie question