I tried making an external library, outside the .blend file, that uses GameLogic, i’d like to compile it as pyc.
g=GameLogic c=g.getCurrentController() o=c.getOwner() w=c.getSensor("sensor") mo=c.getActuator("motion") def moveforward(): g.addActiveActuator(mo, 1)
File “Text”, line 2, in <module>
NameError: “GameLogic” is not defined.
Does anyone know of a way to do this, using PYC files? It doesn’t have to be external, I just want it to be in PYC.