I am trying to move a sprite at a constant speed across the screen when the user holds a button down but does not release it.
This is what I have done so far.
1. Created a boolean variable, beginMoving = false
2. On my ccTouchesBegan event method I set beginMoving to true
3. Inside my game tick, I check to see if beginMoving is true, if true I use MoveTo to move the sprite +10 pixels. If false, I simply do not move the sprite.
Is there a better approach than this? The movement looks a little jerky though barely noticeable.