how i can push 2 buttons in the same time?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Spaliasum

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

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

mistertabasco | 2020-08-20 09:56

:bust_in_silhouette: Reply From: ManiCus

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.is_action_just_pressed (“ui_up”) and is_on_floor () and Input is_action_pressed (“ui_right”):
whatever you want to happen.

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