This works fine within Blender, but it never works with the runtime. How do I get this to work? I need a set of variables that only change when I change them. Thanks.
Hello,
I don’t know what your script is about but in the case of a class definition a solution would be to create an instance of this class as a member of the GameLogic module or of any GameObject:
Run the script with the class definition and instanciation(s) at game start(alwaysSensor with pulse mode off) and the class instances will be accessible in every other scripts during the game session.
Hope this helps
Also I hope my english isn’t too bad…