In this video, Jesse Freeman teaches you how to Zombies that move faster than static obstacles in the game as an added challenge for the player. The Zombies will be built off of the same basic logic of the obstacles but also contain animation. Learning how add more obstacles to your Unity 5 game is an import skills for building a 2D game.
- [Voiceover] Now we're gonna create the last…of our objects in our game.…Let's go into the artwork folder…and into the sprite folder.…We have two special objects.…The chair and the couch.…When the player jumps on these,…we didn't want them to jump on the top of it.…So we're gonna need to make custom objects for these…so that the colliders are are in the middle.…So it looks like when they jump on it,…they're standing on the chair or standing…on the couch correctly.…To get started, let's drag a chair out…and we're gonna start configuring it.…To begin with, we're gonna change it to a chair,…and let's start adding in all the other components…that we need.…
Starting with our box collider 2D.…Here we wanna change the size to be 16 by 13,…and we're gonna change the Y offset to nine.…Next we're gonna wanna add our rigid body 2D.…Here we're gonna set the gravity scale to zero.…Fixed angle is kinematic, and we'll have it interpolate.…Next we'll add the destroy off screen,…and here we'll change this to 34.…
As you can see, the pattern's gonna be the same.…
Start watching to learn how to convert artwork into sprites, create repeating background textures with Unity's TexturePacker, and build reusable game objects such as players, obstacles, and enemies. Jesse also covers the basics of object pooling, working with custom UI components, and multiplatform publishing.
- Importing artwork
- Editing sprites
- Creating repeating background textures
- Building reusable obstacles
- Recycling game objects
- Building an object pool
- Creating the player
- Starting and ending the game
- Displaying and saving the score
- Adding menus and text
- Publishing a Unity game in different formats
Skill Level Beginner
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Polishing the Game
8. Creating More Obstacles
Publish to different formats5m 42s
- 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.