views:

86

answers:

2

Hello,

I was wondering how you would move a CCSprite right and left by tilting the device right and left. Like in the falling balls app.

Thanks in advance, John

A: 

here, it should be simple enough

Matt S.
A: 

The first solution provided is dependent on Chipmonk which is a 2d physics engine. The accelerometer can be used to move a CCSprite without the need of a physics engine. There are several ways to achieve what you want.

This is a great blog with awesome tutorials to get you moving in the right direction.

http://www.raywenderlich.com

reedjsmith