Player Movement with Unity Input System - Top Down Unity 2D #1

preview_player
Показать описание
Beginner friendly and full tutorial on Player Movement using Unity's Input System! We'll also set up a default sprite for our player using the asset pack below. And look into serialized fields!

All source code for all videos I have made and will make in the future can be found on my Patreon:

I'll try posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)

If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡

Check out the full platformer playlist!

BUY THE COMPLETE PLATFORMER GAME TEMPLATE NOW!!!

#unity #gamedev #gamedevelopment #unity2d #indiedev

0:00 - Intro
0:11 - Asset Pack
0:34 - Sprite Setup
1:34 - Player GameObject
2:29 - Unity Input System
3:28 - PlayerMovement Script
5:09 - Unity Input Events
5:58 - Play Test
6:11 - Serialized Fields
7:25 - Next Video!
7:45 - Outro
Рекомендации по теме
Комментарии
Автор

Great concise tutorial, looking forward to continuing with the series!

johnheim
Автор

Something to keep in mind when using the `Update()` function in unity, is `Time.deltaTime()`. You'll want to multiply by that when moving your player around to keep the experience smooth across multiple systems whose specs may differ and effect the framerate. Really like the format of your videos and your energy. Thanks so much!

GhostHack_
Автор

I wish more tutorials were like this. thank you.

flaminganusforge
Автор

Another fire video. That ending music just bring nostalgia. Keep at it!

thisguymartin
Автор

Thanks for this video! Im so excited for this top down series 🎉🎉

pedromaganin
Автор

These are good videos.💖 I have a quick question, i know this video is for 2D top down movement and everything will move on the x and y axis. Do you know how to code for x and z in space, leaving a 2.5d effect?☺

Ellamhm
Автор

Hello, i followed this tutorial and the movement works awesome in my game, however, when i build the game to test the game out on my pc (with the .exe ) the controls don't work, nothing happens, there's no error in the console or anything, right now i have the same exact code as you at the end of #2 of this video, so i'm not sure what could be the issue, thanks :)

YDVN
Автор

Hello! I love this video so far! I am having trouble though at 5:52, there is no option to press Move :( Do you have any ideas of what I did wrong?

PrettyPixels
Автор

I usually use GetAxisRaw to get instantaneous movement without acceleration or deceleration, does the new input system have an equivalent approach?

GiangNguyen-host
Автор

I've been looking for some help with the "new" input system, this is great, thank you!

DaniLearnsTo
Автор

when i type input action it is working but in unity it shoves error (there is no red underline under InputAction)

adriandvoracek