Moving an object by tilting device

How can i control an object by moving the device ? Are there any tutorials ? [import]uid: 132369 topic_id: 25404 reply_id: 325404[/import]

Look into accelerometer, here are two tutorials I found with a single search.

http://techority.com/2010/11/19/control-an-actor-with-the-accelerometer/

http://mobile.tutsplus.com/tutorials/corona/corona-sdk-accelerometer/ [import]uid: 77199 topic_id: 25404 reply_id: 102608[/import]

Theres even a template. Goto the new users forum and go to the read this first thread by Carlos. Choose game templates. Theres one called TiltMonster. I would getyou the link but I am too lazy to use my tablet to go all the over there and come alllll the way back hahha. [import]uid: 143556 topic_id: 25404 reply_id: 102616[/import]

Source code for Tilt Monster on GitHub: https://github.com/jonbeebe/Tilt-Monster

Be warned it is fairly advanced so if you are a new user you may struggle a bit with it at first.

@Mike - I am the same way when using a tablet :wink:

Peach :slight_smile: [import]uid: 52491 topic_id: 25404 reply_id: 102654[/import]

The Tilt Monster tutorial is prob the best way to learn like what has been said. You can also take a look at my code in the topic I just created if you want. I would be willing to help you learn how to put in a re-calibrate button for the user once you have figured out the basics :wink: just PM me [import]uid: 26289 topic_id: 25404 reply_id: 102864[/import]