Hi, all-- so I thought what I had was a good solution to keep a physics-based spaceship sprite that is moved left and right on the screen (a la Space Invaders, Galaga) from going off the edges of the screen; when the ship hits the left or right edge, I set the X velocity to 0. However, when I press my left/right keys to then move back in the opposite direction by changing the X velocity back to a positive or negative number, the ship doesn't move.
Does something have to happen before changing the velocity from 0 to another value before the sprite will start moving again?
Thanks!
Bryan