Tilt

I was looking around and I have not found an answer to this so I guess I should answer now. How do I control an object with the accelemoter and ONLY be able to tilt left and right and stop when I get to a certain point. I am thinking that means making like a rect and playing off to the side but I dont have much experiance.
BTW this will be for my first corona sdk game and to see if I should purchase a lisense [import]uid: 39840 topic_id: 18044 reply_id: 318044[/import]

@asiankidspro

Visit techority.com great tutorials by Peach Pellen

Control An Actor With The Accelerometer

http://techority.com/2010/11/19/control-an-actor-with-the-accelerometer/ [import]uid: 13454 topic_id: 18044 reply_id: 68985[/import]

Thanks KeepTrying :slight_smile:

Asiankidspro - use the tutorial linked to but simply leave out those parts referring to changing the Y, leaving in those relating to X :wink:

Peach :slight_smile: [import]uid: 52491 topic_id: 18044 reply_id: 69091[/import]

You are welcome XD [import]uid: 13454 topic_id: 18044 reply_id: 69239[/import]

Thanks I got the code working and everything in going smoothly. I am hoping now to make my graphics not look as crappy as they are right now! [import]uid: 39840 topic_id: 18044 reply_id: 69258[/import]

I can’t offer any advice there, my graphics are AWFUL. (Except in Burger Cook, but the art there was done by Biffy Beebe, who is awesome at all things artistic!)

Peach :slight_smile: [import]uid: 52491 topic_id: 18044 reply_id: 69276[/import]