25th March 2013, 21:11
|
#8
| Link
|
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Originally Posted by StainlessS
Global ydiff = ydiff + grainStrY # need to use Global when assigning to a global,
|
From docs
Quote:
To define and / or assign a value to a global variable you must precede its name with the keyword global at the left side of the assignment. The keyword is not needed (actually it is not allowed) in order to read the value of a global variable.
|
|
|
|