Using the accelerometer to move a character?

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

Moderators: FourthWorld, heatherlaine, Klaus, 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 » Sun Dec 22, 2013 7:57 pm

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 » Sun Dec 22, 2013 11:50 pm

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