i have a game and in the game there is a button that is supposed to move the player.
it is a touchscreen button but i cannot figure out how to detect when the player has touched it. i am a beginner with godot.
my code:
extends TouchScreenButton
var motion = Vector2()
func _physics_process(_delta):
if (is_pressed()):
print("p")
pass
i cant seem to press it when i run. this is an android game. it is set to print right now as a test but its not printing