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
→
How to switch animations fluidly using accelerometer movement?
Pages:
1
How to switch animations fluidly using accelerometer movement?
oscarkim
Posts: 28
March 22, 2015, 11:08:01 pm
I am finding it difficult to make the player fluidly switch to a animation for the direction of movement e.g move left - switch to left walking animation. Currently the player quickly switches animation rather sharply/ instantly. Even the idle animation does not have time to show or I cannot see the transition( I cannot see that fast). I am using the accelerometer for movement. I have attached the block of code I am using.
Photics
Posts: 718
March 23, 2015, 03:05:32 pm
If you display the accelerometer data onscreen, putting the accelerometer data in a display text block, you can see why this doesn't work. The value is constantly changing, often going above and below zero. To fix this, creating some space around the zero might help... like less than -0.1 and greater than 0.1
Michael Garofalo
–
http://photics.com
– Author of
The Interactive Stencyl Textbook
Pages:
1