one more python question....


(Appolonius) #1

Ok the last question was answered what i wanted to know and aslo helped with a few other thing to…thanks
But i’m still a little lost. I get an error saying that there is no variable named gamelogic. Is this another item i have to install or is it there and a need to place it in my script?
thanks


(theeth) #2

if the variable is global, you have to call it in the function.

exampe:



text = "hello world!"

def Test():
        global text
        print text

Test()

hope that helps

Martin


(eeshlo) #3

The GameLogic module is only available when running the game-engine.


(Appolonius) #4

thank you
man am i glad you pll are here! woohoo