|Topic was automatically imported from the old Question2Answer platform.
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.
var motion = Vector2()
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
Nevermind, i figured out that in the action property of touchscreenbutton, i can set an input to trigger, and from a script i can check if the input has been triggered and do something
rz | 2021-04-25 20:03