Chapter 4. Moving Your Player with Controller Input
One of the most important features of a well-developed game is a system that allows the player to move their character in a way that feels natural and intuitive. In the previous chapter, you wrote your first scripts to make objects move and change color based on a key press. In this chapter, you'll use the key press logic from the previous chapter to create an input script that moves the player in the game world. There's not one single right answer for how to process input and movement in your game, but in this chapter, we'll work with several techniques that contribute to a quality-control scheme. These techniques will be integrated into a "rolling marble" game prototype, which will give you the opportunity to learn about win and loss states.
In this chapter, we will cover the following topics:
Creating an interactive marble prototype
Adding additional functionalities to our marble
Completing our game