Angle of device to determine tilt mechanic

My first game makes use of the accelerometer and tilt in order to control the main mechanic.

However, I have set it up to work so that it only currently works if the starting position is flat. How do I go about implementing alternatives to this when I am making use of both X and Y? [import]uid: 103970 topic_id: 23633 reply_id: 323633[/import]

I haven’t tried this but I suppose when the game starts you’d grab the Y gravity (assuming you’re changing gravity to move the character) and then add that into calculations in your onTilt function. [import]uid: 52491 topic_id: 23633 reply_id: 95075[/import]