Gamelogic problems

Every time i try to compile a python script with the gamelogic class in it it says error even when i try someone else code that i already knows works

I have the same problem, I don’t know the real way to fix it, but if you just save it, then use it like a .py file it will work. just make sure that after you do all your logic brick stuff, you press the “reopen” button in the text editor.


Could you try to be a little more specific please. It’s a little difficult to determine what the problem is exactly, especially since you’re using terms like “compile” and “python script” in the same sentence.

Python is interpreted, not compiled.