Sorry if this isn’t the correct place to put this Post, but I’m having the most horrible time just trying to get a basic Python Script to run. It’s not really a problem compiling, more as it seem that BGE isn’t detecting the script at all, I’m following a tutorial online so sorry if the answer is Obvious and I’m a complete newby. I’ll up load a .blend file I’d really appreciate an explanation thanks guys!
Code Below
import bge
def main():
cont = bge.logic.getCurrentController()
player = cont.owner
keyboard = bge.logic.keyboard
if bge.logic.KX_INPUT_ACTIVE == keyboard.events[bge.events.UPARROWKEY]:
#Move Forward
player.applyMovement((0, .01, 0), True)
main()
Attachments
script.blend (399 KB)