Read my 1st post carefully, and you’ll find this :
RESTRICTION <1> :
In your main script, you have to protect your World instantiation, because it’s done by the IDE.
This is a sample of it :
if __name__=='__main__': print '\n', '@'*10, "\n I'M PROCESSED !!!\n", '@'*10 if not hasattr(help,'IDE'): World() run()
So you must isolate World instantiation so it won’t be done twice each time you update the scene. The rest of your code will be executed normally.
World instantiation is done by the IDE, to isolate the instance, to ease the pain when searching for the must-be-destroyed class instances.
The run() call is safe and meaningless when you use the IDE, since it’s redirected to a dummy run() function.
The test scene is not already use this blocker, so add it yourself.
But, in case you need to instantiate it yourself, save the instance in global namespace as “winst”, like this :
if __name__=='__main__': winst = World( arg1,arg2,etc. ) run()
RESTRICTION <2> :
If you leave World instantiation to the IDE, you should name the class “World”.
Note that you don’t need to have a World class to instantiate. If you’re trying some very simple modules, you can just do everything in module global namespace.