0

I've got a sample game here, and I wanted to give it a try on the iPad.

How do I listen for tilting in flash?

If I have a standard space invaders game, I want to move the spaceship left and right when I'm tilting the device left and right. How do I do this?

Thanks! =)

Stian Berg Larsen
  • 543
  • 2
  • 10
  • 29
  • It's not? I'm just wondering how to listen for accelerometer changes. Thought there might already be presets for left and right tilt.. I'll digg some deeper then :) – Stian Berg Larsen Jul 10 '12 at 14:36

1 Answers1

0

Did you try AccelerometerEvent? Here's a tutorial and sample application using accelerometer to control the ball movements: http://www.gotoandlearn.com/play.php?id=116

strah
  • 6,702
  • 4
  • 33
  • 45