- [Instructor] Now it's time for us…to wire up the jet pack for our player.…Select a player from the hierarchy,…scroll down to the player script,…and double click on the script name.…This will bring us back into MonoDevelop…and into the script we were just editing.…Then scroll up to the top, and…we're going to create a few new public fields.…We'll start by creating a new float…and we're going to call this jetSpeed.…And we're going to set this to 200f.…Next, we'll create a new public field…that's a bouillon, and we're going to call this standing.…
By adding a semi colon at the end, the value will…automatically be set to false when the code is compiled.…Finally, let's create a new public float…and we're going to call this standingThreshold.…And we're going to set this equal to 4f.…We'll use this threshold in order to determine…whether the player has hit the ground…and it's okay to consider him standing.…Now let's scroll down to the update method…and right below where we calculate the absolute value of x,…we're going to create a new variable…
- Optimizing sprites and draw cells
- Cutting up sprite sheets
- Building animations
- Changing animations
- Creating a player
- Moving the player
- Building a level with a simple map
- Creating interactive objects
- Creating alien enemies
- Switching between scenes
Skill Level Intermediate
Careers in the Game Industrywith Christian Bradley1h 19m Beginner
1. Working with Sprites
2. Working with Animations
3. Creating a Player
4. Moving the Player
5. Building a Level
6. Interactive Objects
7. Alien and AI
8. Managing Scenes
Next steps1m 9s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.