I am getting started in Godot and trying to write a simple game, where, when you tap the screen and hold down, the player should be running.
This works fine when I run the scene in Godot on the desktop, but it does not work when I run it on Android, and it also does not work when I set emulate_touchscreen on, on the desktop.
Below is the code for _input:
if event.type == 6 or event.type == 3: #InputEvent.SCREEN_TOUCH:
player_running = !player_running