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
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
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.