Using the accelerometer to move a character?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
inlineskater720
Posts: 1
Joined: Sun May 13, 2012 8:17 pm

Using the accelerometer to move a character?

Post by inlineskater720 »

hello. I am in the process of making a game, and i wanted to use the accelerometer to move the character from side to side. So if someone could help me out with this, that would be great!

Thanks!
~Inline
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Using the accelerometer to move a character?

Post by Simon »

Hi Inline,
Welcome to the forums :)

Have you looked up "accelerationChanged" and "mobileEnableAccelerometer" in the dictionary?
They are what you'll want to use.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Post Reply