So i have a game, and in it there is a touchscreen button, i dont know how to know if the touch screen button has been pressed?
heres my code:
extends TouchScreenButton
var motion = Vector2()
func _physics_process(_delta):
if (is_pressed()):
print("p")
pass
its not printing when i touch it in run.