![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | RudyTheNinja |
I feel like I’m close, but no matter what I change I can’t get the button to move my character
It only moves the player a little bit when first pressed, so I would need to spam the left button to move left
func _on_LeftButton_pressed():
Input.is_action_pressed("ui_left")
motion.x = max(motion.x-ACCEL, -MAX_SPEED)
$Sprite.flip_h = true
$Sprite.play("Run")
I’m very new to Godot and game making in general
I could skip trying to get it to work on android, but I kinda got the want to just make a platform runner, so why not
I just need to be able to move my player so here I am :shrug:
In the Inspector of TouchScreenButtons there is the choice :Action
For the left moving, in Action frame type: ui_left .
For the right moving, in Action frame type: ui_right .
Nick888 | 2019-07-05 09:37