Advanced Unity 2D: Platformer Player Movement
3h 20mAdvanced2016-07-05
Authors

Jesse Freeman
Head of Partner and Framework Marketing at Amazon
Course details
Learn the foundation of player movement in 2d platformer games. This course offers a breakdown of common player behaviors as well as some advanced techniques to bring your 2D platformer to life. Jesse Freeman shows how to detect input from the keyboard and controller, make the player walk and run, and add in more advanced movement behaviors, such as ducks, double and long jumps, and sliding down walls. Plus, learn how to make your character pick up items and fire projectiles like fireballs.
Learning objectives
Building an input manager for keyboard and controllers
Setting up the player
Building reusable, self contained, and modular behaviors scripts
Adding behaviors: walking, running, and jumping
Managing animation states and player collisions
Adding a ducking animation
Detecting wall collisions
Sticking to, sliding down, and jumping off walls
Picking up items
Firing projectiles
Learning objectives
Building an input manager for keyboard and controllers
Setting up the player
Building reusable, self contained, and modular behaviors scripts
Adding behaviors: walking, running, and jumping
Managing animation states and player collisions
Adding a ducking animation
Detecting wall collisions
Sticking to, sliding down, and jumping off walls
Picking up items
Firing projectiles
Skills covered
Real-TimeGame DevelopmentUnityAdvancedVisualization and Real-TimeAECProduct and ManufacturingSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - Using the exercise files
1. Working with Input
- 03 - Input introduction
- 04 - Building an input manager
- 05 - Abstracting axis input
- 06 - Building an input state class
- 07 - Tracking button release states
- 08 - Reading from the input state class
- 09 - Building multiple input managers for multi-player games
2. Walking and Running
- 10 - Setting up the first character
- 11 - Building a test level
- 12 - Building the abstract player behavior
- 13 - Changing the direction the player is facing
- 14 - Saving direction state
- 15 - Adding walking to the player
- 16 - Making the player run
3. Player Animations
- 17 - Managing player animation states
- 18 - Connecting player animation states
4. Managing Player Collisions
- 19 - Working with script execution order
- 20 - Building a collision state manager
- 21 - Debugging player collision state
5. Jumping
- 22 - Making the player jump
- 23 - Limiting jump
- 24 - Adding the jump animation
- 25 - Adding double jump
- 26 - Building a double jump effect
- 27 - Adding long jump
6. Ducking
- 28 - Adding ducking to the player
- 29 - Adding the ducking animation
- 30 - Disable other player behaviors when ducking
7. Wall Collision
- 31 - Building walls for the test level
- 32 - Detecting player wall collisions
- 33 - Adding wall collision animation
8. Sliding Down Walls
- 34 - Sticking to walls
- 35 - Sliding down walls
- 36 - Speeding up wall slide
- 37 - Adding a wall slide effect
9. Jumping Off Walls
- 38 - Making the player jump off walls
- 39 - Cleaning up the wall jump
- 40 - Testing out wall-to-wall jumping
10. Items
- 41 - Picking up items
- 42 - Equipping items
- 43 - Changing animation based on item
- 44 - Adding additional item animation states
11. Firing Projectiles
- 45 - Creating a fireball
- 46 - Destroying the fireball
- 47 - Shooting the fireball projectile
- 48 - Cleaning up the fireball projectile
Conclusion
- 49 - Next steps