0 votes

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 integrateforces(s):

var moveleft = Input.isactionpressed("moveleft")
if move_left :

and by the way why should I put something into func _ integrate_force(anything) ?

in Engine by (114 points)
edited by

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?

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.