Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Asoth |
hello, I just don’t understand why this 4 lines of code attached to a rigidbody2D work in examples and not my project.
should I activate something , somewhere ?
func _integrate_forces(s):
var move_left = Input.is_action_pressed(“move_left”)
if move_left :
print(“left”)
and by the way why should I put something into func _ integrate_force(anything) ?
Are Viewports somehow involved? They can tamper with input handling. What is your project’s node structure?
Also did you check the input mappings in the project settings?
ConnyOnny | 2018-07-27 00:23
well Conny,
you were relevantly right, the ui_mapping differ. I stupidly took for granted that the exemple had the same default mapping as new project. I have got no excuse on this one
Thanks a lot
Asoth | 2018-07-28 08:08