Duke55555 So,i was trying to create touch screen controls to drag a object on his y axis with my finger,but i got no success.Can someone please help me and explain me how to do it?
wombatstampede Here's a demo project which I did for godot 2.1. It demonstrates the use of touch controls. https://godotdevelopers.org/forum/discussion/18499/tutorial-multi-touch-controls-demo-project Your question suggests that you want to drag an object of your game. If this is in 3d (I can just guess) then this might help you: http://docs.godotengine.org/en/stable/learning/features/physics/ray-casting.html?highlight=raycast#d-ray-casting-from-screen It demonstrates how to identify an object in 3D from 2D screen coordinates (i.e. on touch). If you need more info, you might want to be more specific. 2D or 3D? Godot 2 or 3?
NeoD You can catch the finger pos while moving with something like this. func _input(event): if event.type == InputEvent.SCREEN_DRAG: touchpos = event.pos