0 votes

hey! i hope this is a stupid question and it isn't super hard to fix but i'm trying to make a flappy bird clone and this is part of my code:

    if Input.is_action_pressed("space"):
        gravity = -50
        $animation.play("flap")





func _on_TouchScreenButton_pressed() -> void:
    gravity = -50
    $animation.play("flap")

for some reason when i'm on android it doesn't play the animation however if i press the spacebar

in Engine by (120 points)

i realised i forgot to finish my sentence basically if i press the spacebar he does the animation

1 Answer

0 votes
Best answer

nvm i just had another ontouchscreenbutton_pressed in my main scene and that was the one being used

by (120 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.