Moving shapes Using Keyboard
Posted: Mon Jul 13, 2009 6:21 am
Just I want to update the velocity of any shape if i press the left/right arrow key. Suppose, initially,the velocity of any shape is 0, if I press left key the velocity will be 200. How can I do this? please suggest me. Do I use cpUpdateVelocity or anotherway?