Tilting controls

iPhone/iPod/iPad specific questions and discussion

Tilting controls

Postby praaab » Sat Sep 29, 2012 2:13 am

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?
praaab
 
Posts: 82
Joined: Sat Jun 18, 2011 2:14 pm
Score: 1 Give a positive score

Re: Tilting controls

Postby skydereign » Sat Sep 29, 2012 4:24 am

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
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to iOS

Who is online

Users browsing this forum: No registered users and 1 guest

cron