Platformer Player Movement - Unity 2D

preview_player
Показать описание
**FREE script on my Patreon!**
Hello! This video is a simple tutorial on 2D Platformer Movement: moving left, right and jumping.
It'll also include sprite flipping for facing left and right, and collision checking to know when we're standing on a platform.

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

I'll be posting new videos every Friday, 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 ♡

0:00 - Intro
0:12 - Player Object
0:36 - Platform Object
0:53 - Sprite
1:05 - Movement Script
2:18 - Sprite Flipping Script
3:32 - Jumping Script
4:41 - Outro
Рекомендации по теме
Комментарии
Автор

This channel is a hidden gem...Literally
Entertaining and easy to understand coding

ItsHelmetBro
Автор

What a lovely way of presenting and more importantly very clearly outlining what you need to do without wasting time, thank you!

Huedini
Автор

this is exactly what I was looking for. quick and to the point without fluff. thank you

_maxt
Автор

so easy to follow and well explained !! <3

ines
Автор

For all videos I post I'll be posting all source code and any assets we use on Patreon:

For this first video, the source code is on there for free! So check it out to grab the Player Movement code.

GameCodeLibrary
Автор

One of the best and easy to follow tutorial on youtube! Thank you for that. I use that running script for walking and i just try to add running script an add animations to it. I make runSpeed 10f and then make isRunning bool, but i cant figure it out how can i add working running animation and running script. In animatioıns i need to make another blend tree for running or im need to make from movement tree? Can you help me? Thanks a lot for great tutorials!

yigitvaliant
Автор

These videos are a little old but working and is still amazing

Kirito-ewns
Автор

1:14 how did she get to that screen, she added a script then it just appeared for her, what do i press? Ill look soemwhere else, i found out. make sure you have the Visual Studio Code, installed, my first mistake, than double click the file with green pound sigh#

SamArt
Автор

for some reason my script shows that I can't type "y" in the "void FixedUpdate" section of the script, how do i fix?

Hunter-srsf
Автор

nice tutorial, the problem I'm facing with the code is that the player jumps once and that's it, it can't jump mutliple time once you hit play. do you have any solution? Because I'm using Unity 2022.3

bentheafrican
Автор

what app are you using for writiting the script🙂

tangamer
Автор

Wow
well explained in a short video
And your voice is awesome ☺️

Can you do a complete 2d game course?

CapitanMehran
Автор

hey thank u for the tutorial! easy to follow but dont know why some how it doesnt work on my project((( move speed doesnt show up in my inspector, i press A and D my character doenst move and i remade couple times still not working ((( idk whats going on TT

imeeeeeenid
Автор

Hey! Could you make side to side movement and animation tutorial sometime soon? I can't find any on this lol.

iam_river
Автор

anyone know what in the script I change to change what the button controls are

danielhuwiler
Автор

wont this method make the character able to jump as long as it touched anything (walls, celling, ect...) and not just the floor?

chooseaname
Автор

My ADHD wouldnt let e gte past the damn 1 minute mark:(

SamArt