ok i been trying to get input from keyboard and i’m useing msvcrt which works in phython but it does not work with panda 3d well i can’t get it to work heres my code
import direct.directbase.DirectStart
import math
import msvcrt
movex = 1
movey = 1
movez = 1
gameloop = ture
m = loader.loadModel("/c/king.egg")
m.setScale(1,1,1)
m.setColor(10,50,90)
base.camera.setPos (movex,movey,movez)
while gameloop:
char = msvcrt.getch()
if char == chr (119)
movex + 1
m.reparentTo(render)
run()
heres the out put
File "c:\bob190.py", line 21
char = msvcrt.getch()
^
IndentationError: expected an indented block
can someone tell me what i’m doing wrong ?