Creating the illusion of velocity can make your game feel more realistic. In real life, most objects don’t just start and stop. Think of racers who sprint in the Olympics. When the gun sounds they aren’t going their top speed instantly; it takes several seconds for them to reach their maximum stride. The same holds true when they cross the finish line. They don’t stop instantly; it takes them quite a few steps to apply the brakes and slow down. By controlling an object’s velocity in your game, you can make its movement seem more realistic. In an earlier chapter, you learned how to have objects move on their own. Here you will learn to increase and decrease their speed or stop on a dime. These types of controls are great for games that ...
No credit card required