I tried making an external library, outside the .blend file, that uses GameLogic, i’d like to compile it as pyc.
testccomp.py:
g=GameLogic
c=g.getCurrentController()
o=c.getOwner()
w=c.getSensor("sensor")
mo=c.getActuator("motion")
def moveforward():
g.addActiveActuator(mo, 1)
ERROR:
File “Text”, line 2, in <module>
File “Thatexternalfiledirectory”,
g=GameLogic,
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.