YoVDO

2D Character Movement in Unity - Rigidbody2D Movement and Jumping in Unity - Unity Tutorial

Offered By: Dani Krossing via YouTube

Tags

Unity Courses Game Development Courses C Programming Courses Sprites Courses Colliders Courses

Course Description

Overview

Learn how to implement 2D character movement and jumping in Unity using Rigidbody2D in this comprehensive 34-minute tutorial. Gain an introduction to C# programming while creating a PlayerController script to handle character movement. Follow along as the instructor guides you through setting up Unity, creating sprites, adding Rigidbody2D and colliders, and implementing essential C# concepts. Master techniques for player input, using AddForce for movement and jumping, implementing ground checks, preventing rotation, and handling trigger events. By the end of this tutorial, you'll have a solid foundation in 2D character control in Unity, complete with double jump prevention and final Rigidbody2D adjustments.

Syllabus

- Introduction.
- Getting Unity ready!
- Creating our Sprites.
- Adding Rigidbody2D and Colliders.
- Creating our C# PlayerController Script.
- I have a C# course!
- Understanding what is in our Script.
- Fields, Properties, and Methods in C#.
- Using, Classes and MonoBehaviour in C#.
- Start, Update, and FixedUpdate in C#.
- The Void keyword in our methods?
- Creating our Fields.
- Assigning values to our Fields.
- How to get player input.
- Moving our player using AddForce.
- Jumping using AddForce.
- Checking if player is grounded.
- Adding a ground check Trigger.
- Preventing player rotation.
- OnTriggerEnter2D in C#.
- How to add tags to game objects.
- OnTriggerExit2D in C#.
- Prevent player double jumping.
- Final adjustment to our Rigidbody2D.
- Thanks for watching!


Taught by

Dani Krossing

Related Courses

Learn Phaser.js: Physics
Codecademy
Getting Started with GameMaker
University of Colorado System via Coursera
Introducción a Unity para videojuegos 2D
Domestika
Angry Birds Coding Tutorial - CS50's Intro to Game Development
freeCodeCamp
Game Development with LÖVE 2D and Lua – Full Course
freeCodeCamp