Help with phone Scripting

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By NuclearCrab
:warning: Old Version Published before Godot 3 was released.

I was wondering is it possible to control the character by tilting your phone?

also if you touch your screen and will spawn a sprite.

How would that work in the Scripting part?

If you search in the docs you can notice “get_gyroscope()” and “get_accelerometer()” on the Input Class which returns a Vector3.

For the touch screen stuff you have the event InputEventScreenTouch which have a member called position where x and y are stored.

UnsignedFoo | 2018-01-03 17:28