Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DriNeo | |
Old Version | Published before Godot 3 was released. |
In this code “ScreenTouch” is printed only once no matter the touch duration.
func _input(ev):
Event = make_input_local(ev)
if (Event.type == InputEvent.SCREEN_TOUCH):
if Event.pressed:
increaseJumpForce() # as an example if you want to make a runner on mobile.
print( "ScreenTouch")
Have you some solution without using a button for this ?