GEE - Moving the Player Lesson

GameDesignSimulation_LessonTopBanner.png

Moving the Player Lesson

Moving the Player Image

Using C# Script--a powerful object-oriented programming languageYour task in this lesson is to complete the Moving the Player video of the Unity Roll-a-Ball tutorial. This tutorial uses script and other components to move the player using the keyboard.

Like the first videos in the previous lesson, as well as those to come, there is a lot of terminology that will be new to you here. Remember to reference the Key Terms page in this module. Continue to use the Discussion Board if you have problems, but also answer the problems of others as your contribution. Using Discussion Boards to support each other is a game industry standard technique, so start asking for help and offering help.

This lesson will take you through the steps of moving the player using the computer keyboard. Game engines have a lot of built-in functions to help you do this, but you will be writing your first C# (pronounced C-sharp) script to make the player move. C# is a very powerful object-oriented language, similar to C++ and Java. We call it "object-oriented programming" or OOP, because we really consider the "object" that we are writing for, not the whole game. Studies have shown that OOP may take more time to write initially, but is many times faster to improve or fix than procedural or other programming methods.

Take your time, there are many, many pieces to this puzzle, so be sure to understand all of them as you go. This lesson is about quality, not quantity. You will be scripting more in next lessons, so let's get this one done well.

Moving the Player

Moving the Player - Unity Learn Links to an external site.

Vocabulary Review

Use the following activity to help you review the vocabulary terms from the Introduction to Roll-a-Ball and Moving the Player lessons.

 

GameDesignSimulation_LessonBottomBanner.png IMAGES CREATED BY GAVS