Page 1 of 1

Tilting controls

PostPosted: Sat Sep 29, 2012 2:13 am
by praaab
Ok so ive been searching everywhere and there are no explanations..... Is there anyway to have a ship move to the left when the iphone is tilted to the left and if so how?

Re: Tilting controls

PostPosted: Sat Sep 29, 2012 4:24 am
by skydereign
You would use getAccelerometer to do so. There is an example of how to use it in the script reference. As well as here are some other useful links.
http://game-editor.com/forum/viewtopic.php?f=1&t=10592&p=72977&
http://game-editor.com/forum/viewtopic.php?f=1&t=8751&p=60749&#p60842
This is akr's demo of the accelerometer. http://game-editor.com/forum/download/file.php?id=6075