How to switch animations fluidly using accelerometer movement?


  • Posts: 28
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.


  • *
  • Posts: 718
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 – Author of The Interactive Stencyl Textbook 8)