In this video I will go through the steps of basics of implementing 2D movement to your game, all the way from setting up a simple scene and importing the new input system package, up until getting jumping and left/right movement to work. This video is valid as of 2023 This will be a part of an extended series, in which I will episode by episode introduce different features of Unity and slowly piece together a functional pixel art game. Please give me any feedback about anything to do with the video; If I am talking too fast, not explaining enough, missing out steps, etc. Any feedback is appreciated! - Music: On My Way by Ghostrifter Official - Follow us on all socials, @ ---------------------TIMESTAMPS 00:00 - Intro 00:04 - Scene Setup 00:17 - Basic Object Components 00:27 - Player Rigidbody2D Settings 00:34 - Background Colour 00:38 - Importing New Input System 00:51 - Adding PlayerInput Component to Player 01:13 - Input Mappings 01:34 - PlayerController Script 01:54 - Headers 02:02 - Defining Variables 02:51 - Move() Method 03:14 - Code Regions 03:29 - FixedUpdate() 03:42 - Assigning Move() to the Move Event 04:00 - Groundcheck Mock Collider 04:27 - Ground Layer 04:37 - IsGrounded() Function 05:08 - Jump() Method 05:24 - Assigning Jump() to theJump Event 05:34 - Showcase 05:51 - Fixing Player Sticking to Walls 06:05 - Outro
Hide player controls
Hide resume playing