Parallax movement based on Accelerometer


  • *
  • Posts: 649
Hey Ho!

I'm not getting super far with this as i'm obviously not getting the mathematical concept. So maybe someone can help me out a little bit.

Look at the attached picture. I want to move 3 parallax layers according to the position of my phone, using the accelerometer. When i tilt my phone with the home button facing to the floor it shoud move the actors up until they reach their max y position and when i do the opposite i want to move them down.

the effect can be seen here:

but i'm totally stuck on this one!



  • Posts: 84
Did you find the solution for this?


  • *
  • Posts: 649
yes i attached the solution as an importable.
Attach this behaviour to an Actor which should be moved by the accelerometer.
You can fiddle with the values, to have more or less movement.