Advertisement

tilting screen in unity

Started by September 19, 2018 02:05 PM
2 comments, last by Septopus 6 years, 5 months ago

Hi there,
i recently start learning unity and im working in my first game ,

 
I was wondering if unity had functions to support the motion control effect (tilting screen to move character) you see

in doodle jump (which is 2d game) ? If it exists, what are they called? and how it works ?


Thanks

Hello Kamal,

I dont know much about developing for Android with unity but I have some experience with native Android development. What you want is to utilize the Accelerometer of the device, a quick search lead me to this video which should help you. It is quite simple.

https://unity3d.com/pt/learn/tutorials/topics/mobile-touch/accelerometer-input

Advertisement

Here's a link to the older Unity docs on the subject:

https://unity3d.com/learn/tutorials/topics/mobile-touch/accelerometer-input

Should still be mostly relevant for newer versions..  Can search from there though.

This topic is closed to new replies.

Advertisement