playMaker

Author Topic: Please help with accelerometer movement  (Read 1491 times)

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Please help with accelerometer movement
« 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?

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Please help with accelerometer movement
« Reply #1 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Please help with accelerometer movement
« Reply #2 on: October 28, 2014, 01:24:50 AM »
Hi,

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

Bye,

 Jean