Unity 2D Platformer for Complete Beginners - #12 ADVANCED JUMPING

  Рет қаралды 30,629

Pandemonium

Pandemonium

Күн бұрын

In this episode we'll add the following features to our 2D platformer: controllable jump height, coyote time, double jumping (triple jumping etc.) and finally fix the wall jumping.
➤ Complete project: github.com/nickbota/Unity-Pla...
Subscribe and turn on the notifications if you don't want to miss the fourth episode!
➤ Discord : / discord
➤ Patreon: www.patreon.com/pandemonium_g...
➤ Instagram: / pandemonium_games
➤ Twitter: / pandemoniumnick
➤ Itch: nickbota.itch.io/
#pandemonium #unity2dplatformer #unitybeginner
Tags: Unity 2D Platformer for Complete Beginners,platformer for complete beginners,Unity 2D Platformer episode 12,pandemonium games,pandemonium unity,unity wall jumping,unity coyote time 2d,unity 2d coyote time,unity 2d platformer,unity hold to jump higher,unity advanced jumping,unity better jumping,unity 2d wall jump,unity 2d double jump,unity 2d triple jump,unity 2d platformer jump,unity 2d coyote jump,unity coyote jump,unity coyote jump platformer,unity 2d
0:00 Intro
0:17 Controllable Jump Height
2:49 Coyote Time
8:04 Multiple Jumps
10:31 Wall Jumping
12:58 Bug Fixes
14:24 Recap & Outro

Пікірлер: 85
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Hey everyone, eagerly waiting for your feedback. Don't forget to check out the GitHub project if you're having issues and here's the complete code: pastebin.com/E3uUXuUF
@spippyflipling
@spippyflipling 2 жыл бұрын
You've got a great bunch of tutorials-- they're concise, to the point, and very informative. Keep it up!
@allanlee5143
@allanlee5143 2 жыл бұрын
i literally went from gamemaker to this, and it took a fraction of the time. This really helps, its enough to get a base engine going for the megaman like game i was working on. this has been great, thanks!
@gabryoo3100
@gabryoo3100 2 жыл бұрын
For me I'm currently developing a minigame with your videos it's a real present. Thank you ❤
@cameronkelleyshaw9613
@cameronkelleyshaw9613 Жыл бұрын
A bit late to the party here, but I found this tutorial incredibly helpful. The previous tutorials moved a bit fast for me, but the pacing on this one was very helpful and I appreciated the breakdowns of the lines of code and the notes that you added to them. Keep up the awesome work!
@TGG_YT
@TGG_YT Жыл бұрын
Love these tutorials, the pacing and the memes! Great work dude
@niewinskipiotr1993
@niewinskipiotr1993 Жыл бұрын
Thank you so much for making this!
@PianoGreenGaming
@PianoGreenGaming 2 жыл бұрын
YES IT CAME OUT! :)
@Harpic1
@Harpic1 2 жыл бұрын
great vid, cool ideas, keep it up 🙏
@diannecebotari
@diannecebotari 2 жыл бұрын
Thank you, very helpful😍
@pianoatthirty
@pianoatthirty Жыл бұрын
this video is a gem - finally coyote time explained and implemented in a very simple, effective way. I know this series is over but man I would love to know how you personally would implement running (holding a button down to increase move speed).
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
It's not over yet, still got a few videos left, working on the next one right now actually
@canalgamingda1756
@canalgamingda1756 2 жыл бұрын
Great video my dude keep it up
@calixt88
@calixt88 2 жыл бұрын
Keep it up!
@welel5295
@welel5295 2 жыл бұрын
Cool im wating
@gurt6265
@gurt6265 2 жыл бұрын
Thank you so so so much. Seriously!
@zoodolosgamesalt
@zoodolosgamesalt 2 жыл бұрын
Very cool 👍👍👍.
@jackpelon9852
@jackpelon9852 2 жыл бұрын
Thank you friend, I am very very grateful for this new tutorial, I was already going crazy looking for a way to do this... thank you very much, I send you a cordial greeting from Peru, thank you friend... I wish you a good day. :) :) :)
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Glad to help as always, hope this is what you're looking for!
@jackpelon9852
@jackpelon9852 2 жыл бұрын
@@PandemoniumGameDev , yes yes yes yes... Thanks friend, this is what I was looking for, thank you very much... I'll be waiting for your next video tutorial...
@renrenmalibiran743
@renrenmalibiran743 Жыл бұрын
Thanks for the tutorial bro! I'm kindly asking how I'm gonna make double jump and stuff.
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
I LOL'D at the wall jumping meme. I can tell you read the comments XD
@VEE-XL
@VEE-XL 2 жыл бұрын
Thanks i really appreciate this I just completed my own minigame how do i make it an application
@shashank_sharma_7
@shashank_sharma_7 2 жыл бұрын
Great, I am on the 5th video of your tutorial, I do a full-time job as a software engineer that's why I am only able to follow your tutorials on weekends and at night time. Thanks man, We want more tutorials like this .
@Razzzor79
@Razzzor79 2 жыл бұрын
Woooooooo
@kopek1233
@kopek1233 Жыл бұрын
Hey man! Been following these tutorials for a couple weeks or so, and they are amazing for someone like me! (new to unity and game programming in general). With the *NEW* jumping/player movement code , I've been trying to tweak it so that my character slides on the wall (i had it down in the previous code). The new code is confusing me as to why i can no longer slide down the wall instead of being stuck there. Thanks in advance whether you or anyone else can help!
@captainshado783
@captainshado783 Жыл бұрын
Love this guide so far, I have absolutely 0 experience with coding/programming/ game development and your guide was really easy to follow. I didn't intend to have walljumping in my game, but my character still sticks to walls and and obstacles which makes it look kind of choppy. Any ideas on how to fix this?
@user-vv1up3uf3t
@user-vv1up3uf3t 11 ай бұрын
Hi, I have the same problem. Have you fixed it?
@captainshado783
@captainshado783 11 ай бұрын
@@user-vv1up3uf3t I believe you just set the friction to 0.000000001 instead of 0
@giovannielias8153
@giovannielias8153 Жыл бұрын
*BUG* I can do double jumps *with extra jumps = 0* I think what is causing the problem is the coyote time thingy
@ixtream4643
@ixtream4643 2 жыл бұрын
It would be cool if you could add a dash ability or something
@MrCrazyPick
@MrCrazyPick 2 жыл бұрын
Thank you for the seriesr, very helpful. The code is getting a bit confusing as you progress for me. Could you implement the Finity State Machine pattern? Its a topic I'm interested cause this confusion is present in my projects too. Best regards
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Hey there, thanks for the suggestion, do you think the finite state machine would help here? Or it's just something you'd like to see covered?
@MrCrazyPick
@MrCrazyPick 2 жыл бұрын
@@PandemoniumGameDev hey there, is something I would like to see covered
@lewan2kki
@lewan2kki 2 жыл бұрын
Hi there, i really appreciate the tutorial, it works really good for the game that i'm planning to do.. I have an issue: i want to my character to attack when he's in any state.. i already did a transition from any state to attack when trigger attack is called, but it doesn't work.. is anything more i have to do? thanks in advance!
@stormy2049
@stormy2049 Жыл бұрын
Hey there! If by ''any state'' you mean ''being able to attack in the air'' I know what to do, just go in the PlayerMovement script then go to the ''canAttack( )'' method and get rid of the "&& isGrounded( )" Part and that will allow you to attack even in the air if that's what you wanted that is, and if not then what was it?
@bachien5122
@bachien5122 2 жыл бұрын
Hey I love your tutorial and love to see a new episode but i've got an issue recently with the traps that don't move like the spike traps or the fire trap because when you take damage from them if you don't leave the hitbox of the trap the trap won't damage you again, if someone as any idea to solve this. Except this continue this serire it's been a great help for me since the beginning and I'd love to see in the next video something like multiple level and what happend once you die because for now you don't respawn. Keep up the good work this serie is amazing even tough I'm French I understand everything in your video you're the best.
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
He does go back and address this in either the ENEMIES one or the TRAPS video. He had us revisit the FireTrap and fixed this same issue
@blobking6595
@blobking6595 2 жыл бұрын
What is the music that u used? It was a little quiet in this video but I like it!
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Thanks! It's called First by Text Me Records and it's copyright free.
@tommasoraimondi6908
@tommasoraimondi6908 2 жыл бұрын
Hey there, first of all great job for what you're doing, it helps me a lot to stay motivated and continue this adventure in game dev, but i ran in a small bug: i manage to do a double jump even if i don't have extra jumps by simply double pressing the space bar quickly, does anyone have any solution?
@TheWarriorofDestiny
@TheWarriorofDestiny 2 жыл бұрын
same problem here :( I don't even have to press quickly.
@RobotFN
@RobotFN 2 жыл бұрын
Do u have the full game Version I can play and downloaded
@optikuszgamingchannel3728
@optikuszgamingchannel3728 Жыл бұрын
hy! how can i shot while i am running or i am in the air?.. at this video you attack move beetwen the idle and any state.. can you solve yomebody my problem? pls ty
@mikailgunes7835
@mikailgunes7835 Жыл бұрын
Thank you for your Support its a very nice Tutorial for Beginners
@moreaanda627
@moreaanda627 2 жыл бұрын
Can you please make a video showing how to make a button on your main map to take you to a level like in cuphead
@presleyknox9884
@presleyknox9884 2 жыл бұрын
can you pls add a vid in this about melee for the player ???
@sim6996
@sim6996 2 жыл бұрын
There is a problem : when the top of the player hitbox touch a plateform with ground layer you have infinite jump. Also we can't jump when we are on top of a Wall. Do you plan to improve that (Your tutorials are very helpful) ?
@stormy2049
@stormy2049 Жыл бұрын
Try using the edge collider component instead of box collider2D this will allow you to shape you hit boxes the way that you want instead of using a box. This way you can put a hitbox for each sides of the wall that you can label as ''wall'' and have a little triangle hitbox on the top pointing downward labelled ''ground''. TO MAKE IT MORE SIMPLE, picture this: let's say your wall is a rectangle if you trace a straight line from the top left corner all the way across to the bottom right corner and then mirror this from top right to bottom left in order to split it in 4 triangles, top, left, right and bottom triangles now asign all of them the desired layer ''wall'' or ground'' and that should do the trick ALSO VERY IMPORTANT !! : KEEP IN MIND THAT YOU CAN ONLY HAVE ONE EDGE COLLIDER COMPONENT PER GAMEOBJECT THEREFORE YOU'LL AS MANY OF GAMEOBJECTS AS hit boxes needed. There are probably better ways to do it but i'm not aware of them so yeah.. Hope that's clear enough btw and good luck with that.
@colinturner8272
@colinturner8272 Жыл бұрын
Can anyone help me understand how I could incorporate a "crouch/crouching" mechanic into the PlayerMovement script? I'm having a very difficult time trying to figure it out with other videos. :(
@c4dudley
@c4dudley 2 жыл бұрын
I'm having an issue where majority of the time my character tries to run and jump past the "Start (Idle)" object, he gets stuck, and struggles to get by it. sometimes he slows down, sometimes it just freezes in place and i have to move left to get out of it. I've made sure there are no colliders on that start banner object, and it's not the "Right wall" box collider hanging down too much. any thoughts?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Sometimes when your player which has a box collider walks on the point where two ground box colliders connect (in this case it might be the two ground objects from different rooms) your player will get stuck as you describe it. Not sure if I explained it well enough, DM me on discord if it wasn't clear.
@c4dudley
@c4dudley 2 жыл бұрын
@@PandemoniumGameDev okay, that makes sense. I'll play around with it. if the issue still continues, i'll reach out again on discord. thank you, really great tutorials
@vihenranaweera8508
@vihenranaweera8508 2 жыл бұрын
Hey i also made this game thanks also can you make a video of respawning the player in check points Pls.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
The next one is gonna be on that topic. It's available on GitHub already: github.com/nickbota/Unity-Platformer-Episode-13
@nerdherd179
@nerdherd179 2 жыл бұрын
how to make auto save with json ? i hope u make tutorial with this project thanks broo
@v9ui
@v9ui Жыл бұрын
How to add buttons for control In android devices
@NertoFurity
@NertoFurity 9 ай бұрын
I don´t know if someone else has this problem, but my "ranged enemy" doesn´t die and just stays there without moving when reaching 0 hp
@Crownaxxx
@Crownaxxx 2 жыл бұрын
My jump animation is only playing the first single frame after the code change How can i make it play the whole animation again
@huskenraiderz3179
@huskenraiderz3179 Жыл бұрын
In the setting to the transition deselect "Can Transition To Self"
@hoangtunglethanh4710
@hoangtunglethanh4710 2 жыл бұрын
can you pls help me with the NullReferenceException: Object reference not set to an instance of an object Projectile.SetDirection (System.Single _direction) (at Assets/my self/code/fire ball/Projectile.cs:46) PlayerAttack.Attack () (at Assets/my self/code/Player/PlayerAttack.cs:32) PlayerAttack.Update () (at Assets/my self/code/Player/PlayerAttack.cs:23) using UnityEngine; public class Projectile : MonoBehaviour { [SerializeField] private float speed; private bool hit; private Animator anim; private BoxCollider2D boxCollider; private float direction; private float livetime; [SerializeField] private float damage; private void Awake() { anim = GetComponent(); boxCollider = GetComponent(); } private void Update() { if (hit) return; float movementSpeed = speed * Time.deltaTime * direction; transform.Translate(movementSpeed, 0, 0); livetime += Time.deltaTime; if (livetime > 1) gameObject.SetActive(false); } public void SetDirection(float _direction) { livetime = 0; direction = _direction; gameObject.SetActive(true); hit = false; boxCollider.enabled = true; float localScaleX = transform.localScale.x; if (Mathf.Sign(localScaleX) != _direction) localScaleX = -localScaleX; transform.localScale = new Vector3(localScaleX, transform.localScale.y, transform.localScale.z); } private void Deactivate() { gameObject.SetActive(false); } } using UnityEngine; public class PlayerAttack : MonoBehaviour { [SerializeField] private float attackCooldown; [SerializeField] private Transform firePoint; [SerializeField] private GameObject[] fireballs; [SerializeField] private AudioClip fireballSound; private Animator anim; private PlayerMovement playerMovement; private float cooldownTimer = Mathf.Infinity; private void Awake() { anim = GetComponent(); playerMovement = GetComponent(); } private void Update() { if (Input.GetKey(KeyCode.Q) && cooldownTimer > attackCooldown && playerMovement.canAttack()) Attack(); cooldownTimer += Time.deltaTime; } private void Attack() { audiomanager.Instance.PlaySound(fireballSound); anim.SetTrigger("attack"); cooldownTimer = 0; fireballs[FindFireball()].transform.position = firePoint.position; fireballs[FindFireball()].GetComponent().SetDirection(Mathf.Sign(transform.localScale.x)); } private int FindFireball() { for (int i=0; i < fireballs.Length; i++) { if (!fireballs[i].activeInHierarchy) return i; } return 0; } } Pls help me, thank you and plus: your video are amazing =]
@irchanardiansyah4143
@irchanardiansyah4143 5 ай бұрын
my character cant jump after i put the code, can someone help?
@fireflyfi
@fireflyfi 2 жыл бұрын
Funny thing is, I already added all these to my game on my own ^^' Guess your tutorial came a bit late.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Good to hear that you got it on your own, other people still might need this though.
@fireflyfi
@fireflyfi 2 жыл бұрын
@@PandemoniumGameDev yep
@samirmaksudov6471
@samirmaksudov6471 2 жыл бұрын
Wating
@goldmortisshorts4088
@goldmortisshorts4088 2 жыл бұрын
how can i make my player when dies then reaspawn to the ckeckpoint
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
I have that prepared for the next episode, it's almost ready.
@goldmortisshorts4088
@goldmortisshorts4088 2 жыл бұрын
Ok thanks
@RobotFN
@RobotFN 2 жыл бұрын
Is there any way to download the game
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
You can download it from GitHub and play it inside Unity for now. Will release the game when the series is over.
@juneha
@juneha 2 жыл бұрын
Hey will you teach us how to respawn after we lose all our health?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Yep, in the next video.
@juneha
@juneha 2 жыл бұрын
@@PandemoniumGameDev Any date as to when please?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@juneha ​ By the end of this week.
@juneha
@juneha 2 жыл бұрын
@@PandemoniumGameDev Thanks!! Been waiting can’t wait
@juneha
@juneha 2 жыл бұрын
@@PandemoniumGameDev Any updates sir?
@bogatyrstudios1272
@bogatyrstudios1272 2 жыл бұрын
well i need your help , recently took a break from coding from the start of this year could you help me get back on my coding feet. Please
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
How can I help besides making more videos? :D
@bogatyrstudios1272
@bogatyrstudios1272 2 жыл бұрын
@@PandemoniumGameDev you could make a video on how to get back into game development and you could make money in return = good
@Jimbo_coight
@Jimbo_coight 2 жыл бұрын
@@bogatyrstudios1272 make good game + marketing = monies
@bradarmstrong9282
@bradarmstrong9282 2 жыл бұрын
promosm ?
@moodswinging4406
@moodswinging4406 2 жыл бұрын
I am writing a book and will make a game out of it😊. Can you recommend how to make the character, dpi and how big please? Many thanks for your tutorial.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Hey there, good luck with your game! I would recommend Aseprite is you want to make pixel art, but I'd also recommend looking for channels that focus on art, you'll get better advice there for sure, I kinda suck at art.
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
Glow Stick Secret (part 2) 😱 #shorts
00:33
Mr DegrEE
Рет қаралды 45 МЛН
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 28 МЛН
YouTube's Biggest Mistake..
00:34
Stokes Twins
Рет қаралды 67 МЛН
Mini Jelly Cake 🎂
00:50
Mr. Clabik
Рет қаралды 17 МЛН
Secrets to a Great Platformer Character with Unity
3:11
Dawnosaur
Рет қаралды 52 М.
Do Battery Kitchen Gadgets REALLY Work?
11:22
DaveHax
Рет қаралды 9 М.
Disney's Most Advanced Animatronics - You'll Be Amazed
14:44
Fastpass Facts
Рет қаралды 30 М.
How to make a good platforming character (Developing 6)
14:50
Game Maker's Toolkit
Рет қаралды 408 М.
MAKING RUN, IDLE & JUMP 2D GAME ANIMATIONS - UNITY TUTORIAL
15:30
Blackthornprod
Рет қаралды 505 М.
Improve Your Platformer with Forces | Examples in Unity
7:01
Dawnosaur
Рет қаралды 162 М.
3 ways to do a Ground Check in Unity
15:58
Code Monkey
Рет қаралды 220 М.
Which Animal Is The Best At Supervising The Thief? 🤔️
0:24
BigSchool
Рет қаралды 19 МЛН
POLICIAL CAIU NA AGUA KK  #cidadealta #gtav #fivemrp #gta5
0:19
LUKA_GOAT
Рет қаралды 12 МЛН
Best Leon Rizz #brawlstars
0:11
Mr_Dex
Рет қаралды 10 МЛН
Upgrading The Golem Until It Survives!
1:00
TDC
Рет қаралды 17 МЛН