Getting a character to move in your Unity game engine takes some understandment. In this tutorial you will learn how the New Input System works and how you use it to move a 2D character. By combining a Sprite Renderer and a Rigidbody2D we will make moving as simple as possible. This tutorial is focused to be beginner-friendly and explains all the steps that happen.
Building op on this we will animate the character and add colliders in the upcoming episode.
Relevant Videos:
Animating a Character: • How To Animate Your 2D...
Customizing Unity: • How to Customize Unity...
Tilemaps 2021: • Creating Tilemaps For ...
New Input System: • The SIMPLEST Way to Us...
Linear Drag explained: • Linear Drag & Angular ...
Download the Character here: opengameart.org/content/16x18...
=========
💬 DISCORD: / discord
❤ SUPPORT ME: / velvary
🎮 PLAY MY GAMES: velvary.itch.io/
🦜 TWITTER: / velvary1
💡 ...MORE TUTORIALS: / velvarygames
=========
Timestamps:
00:00 - Intro
00:35 - Setup the Project
01:19 - Download the Character
01:43 - Configure the Character Sprite
03:13 - The Player Game Object
03:53 - Installing the New Input System
04:35 - Define the Controls
06:38 - Updating the Player Components
07:38 - The PlayerMovement Script
11:27 - Moving the Rigidbody (V1)
14:11 - Adding a Speed Variable
16:00 - Changing the Velocity (V2)
17:54 - Using AddForce (V3)
19:05 - Thank you for watching :)
Негізгі бет The New Way for Making a Character Move - New Input System Player Movement - Unity Tutorial
Пікірлер: 68