Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bluephlegm |
This is the code that I am using , which doesnt seen to work at all now…
if Input.is_action_pressed(“left”) and not Input.is_action_pressed(“right”):
motion.x = -SPEED
elif Input.is_action_pressed(“right”) and not Input.is_action_pressed(“left”):
motion.x = SPEED
else:
motion.x = 0