ID:167340
 
How would I define a variable like this
src.given = 1
// I have tried doing it like this

var
given = 0
// and like this
mob
var
given = 0

but it always says undefined variable
Show us the code were it gives you this "undefined variable".
mob
var
given = 0

That should work... make sure you're using given and not Given or Gven or some other typoed version thereof.

Of course, if you attatch given to a mob, then ask for an obj's given value, it will be wrong. If you used
var
given = 0

src.given = 1 will be an error.

And you only need 3 periods (...) in elipses, not 8.


--Vito