Unity/C# Challenge 57: Player Controller.

Alec Oney
Dec 9, 2021

Challenge: Implement a Player Controller

To start, we want to create a new script (within our project folder for our 2.5D certification) and name it “Player”; we will drag this onto our player character and begin to setup our script:

Here, our controller is setup to get our character controller at the start, then use it to establish whether we are grounded, our horizontal movement, our jump ability, and our gravity. This results in:

--

--