Android build doesn't have any animation

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

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

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

ROBOTOO007 | 2020-05-30 16:07

:bust_in_silhouette: Reply From: ROBOTOO007

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