It’s easy to setup simple character movement based on keypresses, we’re going to take it a step farther. Don’t worry this is still easy but this time around we are going to add velocities in x and y directions that will be affected by “friction” and your keypresses… The end result will be a much smoother movement for our spaceship.
Comments