You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to let the player in the ursina move, i use pyautogui to press w,s,a,d to achieve the movement.(in the ursina, w,s,a,d can make the player moves) . unluckily it doesn't work:(
My code:
def input(key):
if key=='up arrow':
pyautogui.keyDown('w')
if key=='up arrow up':
pyautogui.keyUp('w')
and i tried adding 'print(key)':
the 'w' doesn't show, which means 'w' wasn't clicked:( how to fix it??
The text was updated successfully, but these errors were encountered:
to let the player in the ursina move, i use pyautogui to press w,s,a,d to achieve the movement.(in the ursina, w,s,a,d can make the player moves) . unluckily it doesn't work:(
My code:
def input(key):
if key=='up arrow':
pyautogui.keyDown('w')
if key=='up arrow up':
pyautogui.keyUp('w')
and i tried adding 'print(key)':
the 'w' doesn't show, which means 'w' wasn't clicked:( how to fix it??
The text was updated successfully, but these errors were encountered: