Join Jesse Freeman for an in-depth discussion in this video Clean up the player, part of Unity 5: 2D Building an Adventure Game.
- [Instructor] The last thing we want to do…before moving on to coding up our player…is to clean up the collision detection.…Let's select our player…and take a look at it.…As you can see,…we have a box collider around the player,…but the box collider is actually larger…than the player-sprite itself.…The reason for this is that…when we added the collider,…it's using the sprite's actual size…and it isn't taking into account any transparency.…Now while we can go in and manually…change the size of the box collider,…when it comes to building platformer games in Unity,…a box collider actually isn't going to be very good.…
The box collider itself may get caught on other tiles,…as you move around the map,…so we're going to look at adding a circle collider…to our player,…so that it moves a little bit more smoothly…around the level.…Let's right-click on the Box Collider 2D…and remove the component.…Next, we'll click on Add Component…and let's type in Circle Collider 2D.…Once we add the circle collider 2D,…let's go and re-size it.…
- 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
Build a Real-Time Strategy Game with Unity 5with Dan Violet Sagmiller3h 47m 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.