Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ptrlo on October 23, 2014, 08:32:48 AM

Title: Please help with accelerometer movement
Post by: ptrlo on October 23, 2014, 08:32:48 AM
I have a portrait game and all the player object needs to do is move to the left when the player tilts the device left and right when the device is tilted right. How do I translate the device acceleration to the player movement?
Title: Re: Please help with accelerometer movement
Post by: ptrlo on October 23, 2014, 09:19:42 AM
I got it to work. I basically did the same thing but anew, and it worked.What is the easy way to use math for the device acceleration multiplier?

What if it needs to be a ever changing float value that you want to multiply by 2? I wish I could just write float * 2 in the multiplier field.
Title: Re: Please help with accelerometer movement
Post by: jeanfabre on October 28, 2014, 01:24:50 AM
Hi,

 is "float multiply" action not doing the job for you?

Bye,

 Jean