How to access a variable from another python file in BGE I have the 'distance' variable in the file 'char.py'. I wanted to get the value of this variable in another script. How do I achieve this?
When you register your script it becomes a module which you can then import in another script.