TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Old Questions (from 1.x/2.x)
→
Parallax movement based on Accelerometer
Pages:
1
Parallax movement based on Accelerometer
h1rnz1lla
Posts: 649
June 08, 2013, 11:11:56 am
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:
http://vimeo.com/25872573
but i'm totally stuck on this one!
Help!
Katrins colorful Moon Story iOS
,
Matchagon iOS
,
Super Zombie Tennis iOS
,
Muffin Munch iOS
- Available at the AppStore, Follow Us on Twitter
@Tinytouchtales
misterfreeze
Posts: 84
May 29, 2014, 05:47:03 am
Did you find the solution for this?
h1rnz1lla
Posts: 649
July 03, 2014, 01:26:17 am
hey,
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.
Katrins colorful Moon Story iOS
,
Matchagon iOS
,
Super Zombie Tennis iOS
,
Muffin Munch iOS
- Available at the AppStore, Follow Us on Twitter
@Tinytouchtales
Pages:
1