0 votes

i got 3 buttons in my game (move right, move left and jump)
how can i push 2 buttons in the same time (move right and jump)? i make the game for android

Now i just can oush only one, so i cant jump during move right

in Engine by (44 points)
edited by

I assume there is something wrong in your code.
Are you talking about TouchScreenButtons or InputEvents?
Could you show us your code?

1 Answer

0 votes

I didn't quite understand the question, but I guess you assigned the actions to the "touchscreenbuttons" so what I would do is:
if input.isactionjustpressed ("uiup") and isonfloor () and Input isactionpressed ("ui_right"):
whatever you want to happen.

(I don't know what kind of button you are using: Buttons, TextureButtons, Touchscreenbuttons???)

by (103 points)
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.