- [Instructor] With our player prefab already set up,…it's time for us to add some collision detection.…Let's go ahead…and select the Player from our Hierarchy view,…scroll all the way to the bottom, and click Add Component.…From here, we're going to select Physics 2D,…and let's go ahead…and add a new Rigidbody 2D…to our player's GameObject.…You'll notice that all the properties are set to bold,…and that's because we've only modified the instance…of our player prefab and not the actual prefab itself.…
Once we get this set up,…we'll save those changes back to our prefab.…If we go ahead and run our game,…you'll see that the player falls,…but it's happening very slowly.…That's because there's a difference…between the Gravity Scale of Unity at its default value…and the size of our object,…since we've changed the sprites…to be a pixels to units value of one.…This is going to be an issue throughout our game.…And while we can go to the Rigidbody itself…on the GameObject and change the Gravity Scale,…it's going to make more sense to do this globally,…
- 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.