Unity 2D Platformer for Complete Beginners - #5 GRAPHICS

  Рет қаралды 84,991

Pandemonium

Pandemonium

Күн бұрын

In this video we're gonna talk about sprites and how to edit & use them in Unity.
➤ Pixel Adventure Alternative Download: drive.google.com/file/d/1Zixm...
➤ 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: / pandemonium_games
➤ Instagram: / pandemonium...​
➤ Twitter: / pandemoniumnick​
➤ Itch: nickbota.itch.io/​
#pandemonium​ #unity2dplatformer​ #unitybeginner​
Tags: Unity 2D Platformer for Complete Beginners,Unity 2D Platformer episode 5,Platformer for Complete Beginners,unity platformer complete beginner,unity3d,unity2d,unity 2d game tutorial,unity bullet,unity projectile,unity shoot 2d,unity shooting 2d,unity fireball,platformer shooter,unity bullets,unity beginner tutorial,pandemonium games,unity sprites,unity sprite editor,unity pixel art,game development for beginners,unity 2d,unity 2d platformer,graphics
0:00​ Intro
0:06 Cleaning Up
0:38 Importing Sprites
1:15 Ground Tiles
4:00 Wall Tiles
7:00 Ceiling
7:50 Additional Details
8:26 Background
9:10​ Final Result & Outro

Пікірлер: 141
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
If you're having issues importing the package from the Unity Asset Store I put an alternative download link in the description.
@aapin3348
@aapin3348 Жыл бұрын
Hi. When im running on the ground there is this weird thing where it is like it hits an invisible wall and the player just stops and cannot pass through unless i jump. Please drop some advice on what to do. Thank you!
@JoelAguilarCerna
@JoelAguilarCerna 3 ай бұрын
what can I do if the walls are not visible when I run it?
@brainy3429
@brainy3429 2 жыл бұрын
If there is someone out there like me who slice the sprite and apply and your sliced sprite doesn't appear in the terrain>...>assets,make sure that u slice the sprite that u want to slice with thin blue line box.Open sprite editor and slice what u want with thin blue line box (not with thin green line box).hope this would save some time for someone.
@mxtrem3
@mxtrem3 2 жыл бұрын
Another incredible tutorial man, literally the best tutorial on youtube by far. Straight to the point, extremely clear, simple, gets the job done.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Thanks a million! Comments like these really inspire me to keep going :D
@jonathanflores-xb6tl
@jonathanflores-xb6tl 3 жыл бұрын
I cant wait for the camera episode! You make these tutorials so easy to understand. I appreciate you man!
@korpos8833
@korpos8833 3 жыл бұрын
Yeah, it has been very comprehensive to follow your tutorials, Thanks!
@cadenphillips6648
@cadenphillips6648 3 жыл бұрын
Love the tutorial. Can't wait for you to teach us to make enemies!
@lord2062
@lord2062 3 жыл бұрын
I love your tutorials man, I can't wait for the next one
@VKAKOU
@VKAKOU 3 жыл бұрын
Really great tutorial! Enjoyable to watch with perfect explanation!
@cast1594
@cast1594 2 жыл бұрын
This is great man!! I've learned so much through these tutorials!!!
@SuperGonzales94
@SuperGonzales94 2 жыл бұрын
Thank you so much for sharing your knowledge, I have learned so much, keep them coming :)
@Davieu101
@Davieu101 2 жыл бұрын
Another great vid! I am able to work off of the content you have created and expand. Thanks for the vids!
@ggain1008
@ggain1008 Жыл бұрын
Thank you very much! Best tutorial I've ever seen!
@hahaeggplanet12
@hahaeggplanet12 2 жыл бұрын
thanks for the amazing tutorials!
@arjotto
@arjotto 3 жыл бұрын
congratulations on the 1k, nice video
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thanks a lot 🙌
@md.ratulislam7759
@md.ratulislam7759 Жыл бұрын
Very Good tutorial, I am following the entire series, now I am in this part
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Glad to hear you're enjoying it, good luck!
@nicom4339
@nicom4339 3 жыл бұрын
Please keep making these its super helpful
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Episode 6 is coming today or tomorrow
@laurscode5778
@laurscode5778 3 жыл бұрын
Nice tutorial) Thx cuz you explain that in a really simple way
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thx dude, much appreciated 🙌
@StormTheOnigiri
@StormTheOnigiri 2 жыл бұрын
If yall wanna save a LOT of time, instead of duplicating each tiles one by one, you can set the tiles draw mode to "tiled" and change the width or height accordingly, then make box collider auto tile. You can do the same for the wall
@woodenfoundation1465
@woodenfoundation1465 Жыл бұрын
thats what i did it works so much better
@user-bx6th4bs8x
@user-bx6th4bs8x 3 жыл бұрын
Great Video again!
@Moiz.A56
@Moiz.A56 3 жыл бұрын
nice tutorial you are so underrated
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thank you 🙌, that will change slowly but surely just have to make good videos consistently
@mxtrem3
@mxtrem3 2 жыл бұрын
LETS GO!!!
@Xukki09
@Xukki09 2 жыл бұрын
I don't get a snap when moving tiles with holding down v. I can only normally move and scale the tile
@StigDesign
@StigDesign 3 жыл бұрын
Great Video tutorial :D
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks Stig, you're gonna be like an OG on the channel soon 😁
@StigDesign
@StigDesign 3 жыл бұрын
@@PandemoniumGameDev hehe :D
@user-mw5ud9ug2z
@user-mw5ud9ug2z 27 күн бұрын
at 3:13 the button you pressed to snap the ground, where will I find in the newest version of Unity?
@puertoroc4035
@puertoroc4035 2 жыл бұрын
Hey I keep getting lines between the wall sprites when I duplicate and snap together no matter how close I put them the line remains, any help is appreciated
@Rejgam756
@Rejgam756 2 жыл бұрын
Tyvm for these tutorials. Why are we not using **Draw Mode > Tiled ** in the Sprite renderer instead of creating many Game Objects? I tried it and it works fine.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Yeah, this one might even work better, should've thought about it but now we're rolling like this.
@UmoralCaratol
@UmoralCaratol Жыл бұрын
You can use tilemap option
@toxicplayer5116
@toxicplayer5116 9 ай бұрын
hey guys! I have two big problems: 1 is that the projectile comes straight towards the player, even though I have implemented the SetDirection method, and 2 is that after shooting i get the NullReferenceException error
@yogeshpundir5614
@yogeshpundir5614 3 жыл бұрын
Bro can wait to see the next part pls upload it fast ,😁
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Coming tomorrow
@yogeshpundir5614
@yogeshpundir5614 3 жыл бұрын
@@PandemoniumGameDev :D
@yogeshpundir5614
@yogeshpundir5614 3 жыл бұрын
bro?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@yogeshpundir5614 yeah, f*cked up and got delayed again. Released it today
@VivaLaCommodore
@VivaLaCommodore 2 жыл бұрын
i feel like i follow you, but still make insane mistakes lol, i'm having fun though - thank you my dude
@frameandfuelchronicles
@frameandfuelchronicles 2 жыл бұрын
I am able to see the wall in the scene.. but when i am doing the game the wall is not showing
@Hubxrt
@Hubxrt Жыл бұрын
One question: Why arent you just using the tiled mode in the sprite renderer. Its easier than duplicate 1 object the whole time
@ldmdesign5610
@ldmdesign5610 Жыл бұрын
this is what i'm wondering too
@dappydux7679
@dappydux7679 2 жыл бұрын
Nice tutorial man!! Im having an issue where my player sprite just disappears when I run my project. Do you have any idea why this could be happening?
@quetsche
@quetsche Жыл бұрын
change player order in layer
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
it could be your Layers, or maybe double check the Player Animation to see if you added all the frames of the Idle Animation? good luck
@booga9x74
@booga9x74 2 жыл бұрын
Hi, Pandemonium, firstly , thank you for those videos i learning a lot ...i just encounter a small problem, well i did draw every sprite myself , learn by the same time how to design a game using your method, but since i had place the ground the player object do not jump or shoot anymore... i did draw tiles and sprites ( i mean instead of a dragon its a little guy who throw plungers) i didn't change anything else, same code, do you have a idea on what can be the cause this problem?... update : ALL IS FINE !!..i find my mistake!!.i didn't change the layer to Ground ...=) thx for your videos!!!
@owentandy5742
@owentandy5742 Жыл бұрын
I had the same problem. If you select the ground then go to layer in the top right of the inspector and change the layer to ground then it should work. That worked for me.
@techtom2171
@techtom2171 2 жыл бұрын
for some reason after doing all this when I jump down from the wall it causes certain variations in z axis from rotation of my player when it should be stable at zero like before what do you think might be causing this ? I did use quaternion.euler in update method so that could be stable per frame without any variations but i still don't understand why it was happening in the first place any idea?
@mrnobody3122
@mrnobody3122 2 жыл бұрын
All you have to do is select the player in the hierarchy > Rigidbody2d > Constraints > Freeze Rotation Z
@mrnobody3122
@mrnobody3122 2 жыл бұрын
I also don't know why it happens but this is how to fix it
@jhanleyyap4517
@jhanleyyap4517 2 жыл бұрын
Hi, quick question, how do you fix the flickering of the character, because since I started to put the background and finished it, after that whenever i press play in unity, the character keep flicking, aside from that everything is working.
@nakiaj3721
@nakiaj3721 2 жыл бұрын
same here, anyone found a fix for this? only happened when I started on the background
@nakiaj3721
@nakiaj3721 2 жыл бұрын
hey so I actually saw a comment further below that solved the issue for me. set the order in layer for the Player to 1
@vrbz
@vrbz 2 жыл бұрын
the snapping doesnt work on the wall
@diamondfiremc2514
@diamondfiremc2514 2 жыл бұрын
Hey sir, after putting in all of the background layers and everything, my camera does not see the walls anymore, the order in layer is set correctly and i can see it fine in scene view, but after testing the game the walls are no longer there, please help. Thank you in advance
@diamondfiremc2514
@diamondfiremc2514 2 жыл бұрын
I figured out what was wrong, somehow my Z layer was like -200 or something and I was able to figure it out by switching to 3d mode and my wall was way behind my camera lol, leaving this comment here in case anyone else has this problem.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@diamondfiremc2514 Yeah it's the Z position that creates these issues, glad you found it.
@amitkesari2000
@amitkesari2000 2 жыл бұрын
@@diamondfiremc2514 Thanks! Even i wasn't able to see my walls in the Game Mode. It was due to the Z - axis value of wall.
@kuuhaakuu
@kuuhaakuu 2 жыл бұрын
Thanks, Kind stranger
@ibadngames9847
@ibadngames9847 2 жыл бұрын
bro my wall is not showing in the game
@KisameBG
@KisameBG 2 жыл бұрын
Hello the tutorial is great and so far everything is perfect. I have an issue where my character trips sometimes and like...falls over on his face or back :D Any ideas?
@hipmonkgaming821
@hipmonkgaming821 2 жыл бұрын
I had the same problem it's from the boxcollider2d area being to small around the character!
@ArtOfDying1029
@ArtOfDying1029 2 жыл бұрын
Locking the Z axis on the rigidbody will solve this problem
@andrejvrzina8134
@andrejvrzina8134 Жыл бұрын
@@ArtOfDying1029Ik am late but i took weeks trying to figure this out thank you so much
@rajvirsoori9687
@rajvirsoori9687 2 жыл бұрын
As soon as I make the floor a child, it disappears. I tried adjusting its position and scale back to what it was before I made it a child but it still does not appear, would you happen to know how to fix this?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Check the Z position of the parent object and of the floors then the sorting layers.
@eduardo2151
@eduardo2151 2 жыл бұрын
I can not render my wall assets
@SimonJification
@SimonJification 2 жыл бұрын
Great stuff again, I'm learning a lot. I understand the object duplication method if you for example want to be able to destroy the walls or something like that, but is there no option to repeat or tile the sprites? That would make more sense for backgrounds and non-destructible environmental objects. That would make the hierarchy view far less cluttered.
@GeorgReitterer
@GeorgReitterer 2 жыл бұрын
select the sprite go to Draw Mode select Tiled, now you can drag the sprite bigger and it tiles automatically, i have no idea why he is not using this function
@oneangelartyz1090
@oneangelartyz1090 2 жыл бұрын
@@GeorgReitterer thanks!
@subharanjanghoshal5597
@subharanjanghoshal5597 2 жыл бұрын
I'm having problem with the Sprite Editor. When I edit the wall section and apply, the edited ground slice is gone and vice versa. What may be the reason?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
You need to enable the Multiple Sprite Mode, right now it's single so you're getting only one sprite
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
1:26
@subharanjanghoshal5597
@subharanjanghoshal5597 2 жыл бұрын
@@PandemoniumGameDev well, I thought that too but no, the sprite is still in multiple mode. Let me explain what I'm facing here. When I open the editor and edit multiple tiles and press apply, all modifications are being saved but once I reopen the sprite with the editor and do something, all previous modifications are gone. So for now, I have edited all three required tiles in one go as a temporary solution.
@subharanjanghoshal5597
@subharanjanghoshal5597 2 жыл бұрын
Just now I tried the same sprite editing thing on a new project and it's working fine. All new modifications are being saved. Crazy moment hahaha
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@Subha Ranjan Ghoshal Glad you got it to work 😀
@Cleevor
@Cleevor 2 жыл бұрын
2:51 thicc XD
@Kingrio22
@Kingrio22 2 жыл бұрын
good video but when I press play the ceiling doesn't show, it just shows the colour background, any suggestions please?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Check the Z position of the ceiling objects, it must be 0. Otherwise they might not show up because they're behind the camera.
@Kingrio22
@Kingrio22 2 жыл бұрын
@@PandemoniumGameDev it worked! Thank you!
@asyhhaz3882
@asyhhaz3882 2 жыл бұрын
My Z position for all ground is 0 , but the ground didn't appear in gamee . it just seen in scene. Why??
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Is the Z position 0 for the parent of the ground object too?
@fallenIights
@fallenIights 2 жыл бұрын
In 3:30 how do you copy paste so quickly? What keyboard shortcut if any?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Ctrl+D to duplicate, but the video is also sped up at this part so it looks faster than it actually is really.
@fallenIights
@fallenIights 2 жыл бұрын
@@PandemoniumGameDev just used ctrl d, thanks!
@benjaminli3808
@benjaminli3808 2 жыл бұрын
when I have an island, and my player runs into the side of the island, the run animation will continue for a bit before stopping. In other words, the player sort of sticks to the side of the island. How would I resolve this issue?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
I need a video or more details to understand the issue. Possible?
@benjaminli3808
@benjaminli3808 2 жыл бұрын
@@PandemoniumGameDev so like i have some rectangles that are like platforms/islands in my screen, so that the charcater can jump on top of them. It works fine in terms of allowing my character to walk around on top of it (i also put the ground layer on them) but when i jump and my player hits the side of the rectangle, the player doesnt "slide off" it just sticks there briefly as the run animation finishes. I think a similar reason also allows me to essentially hold the left and right button and stick my character to the side of the rectangle. I hope that makes sense. I want it so the character just sort of slides off when hitting the side of the rectangle.
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@benjaminli3808 Ah, got it now. You can try to assign a physics material to the player or island objects, kinda like Blackthorn did in this video: kzbin.info/www/bejne/h3inlpScid1oq8k Try it out and DM me if it doesn't work
@adamahmed6519
@adamahmed6519 Жыл бұрын
When i start the game i can see my sprite
@jadenreece5866
@jadenreece5866 Жыл бұрын
would it not be easier to use a tilemap?
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Yep, realized the same thing after I did it, but at least I got to explain of moving objects around, making them stick to each other etc
@moritz8369
@moritz8369 2 жыл бұрын
Would be nice to use a tilemap instead but still a great tutorial
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Yeah tilemaps are a more efficient approach, I didn't consider that when making the video. Sorry about that and will consider making a video on that in the future.
@tihan6
@tihan6 2 жыл бұрын
Hey my Background goes in front of everything how do I fix this?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Change the "Order in Layer" setting. Use 0 for the background and something higher for everything else.
@tihan6
@tihan6 2 жыл бұрын
@@PandemoniumGameDev Thx for helping 🙏🏻
@FrosenHell
@FrosenHell 2 жыл бұрын
isnt tilemap faster way to do the ground and stuff?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
It is, absolutely. I chose this way because we only have a couple rooms to build plus I wanted to teach people about basic object manipulation(moving, rotation, snapping etc.)
@DeoTheDoge
@DeoTheDoge 2 жыл бұрын
For some reason when i add the wall sprite, it shows up in my scene editor but when i go to game or play it just dissapears
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
The Z position on the wall object is negative, change it to 0
@DeoTheDoge
@DeoTheDoge 2 жыл бұрын
@@PandemoniumGameDev thanks it worked
@puertoroc4035
@puertoroc4035 2 жыл бұрын
Same issue but my a position is at zero
@DeoTheDoge
@DeoTheDoge 2 жыл бұрын
@@puertoroc4035 try a negative number maybe -12
@asyhhaz3882
@asyhhaz3882 2 жыл бұрын
@@DeoTheDoge My Z is 0 and i also try to put -1 and -2 ,, but the ground didn't appear in gamee . it just seen in scene. Can you help me?
@salmadouidar2693
@salmadouidar2693 2 жыл бұрын
Hey, the tutorial is awesome ! But for this video, the camera controller code is not there
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Thanks a lot! It shouldn't be there, we implement the camera movement only in episode 6
@salmadouidar2693
@salmadouidar2693 2 жыл бұрын
@@PandemoniumGameDev hahaha, my bad! I was working on it rn and i didn't notice! Thank you though, you saved a student here! Please do a similar one in 3d
@salmadouidar2693
@salmadouidar2693 2 жыл бұрын
Also any suggestions to help my character not to fall down when it passes room 1's door?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@salmadouidar2693 Yeah, on the rigidbody of the player there is a Constraints section, choose Freeze Z Rotation.
@salmadouidar2693
@salmadouidar2693 2 жыл бұрын
@@PandemoniumGameDev I did 🥺 It doesn't fall down on the floor.. it falls down off the ground as if there is no gravity. If I jumped ,it works fine but I can't walk on it
@thinalsumanaratne8402
@thinalsumanaratne8402 2 жыл бұрын
Scene object not visible in game How can i fix that
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Set the Z position of the object to 0.
@ahmetsahan1776
@ahmetsahan1776 Жыл бұрын
dude how do you quickly copy objects side by side
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Not sure I got the question but you can select an object and press Ctrl+D to duplicate it. Let me know if you meant something else though.
@ahmetsahan1776
@ahmetsahan1776 Жыл бұрын
@@PandemoniumGameDev thanks dude I'm trying to say that for example when copying groun objects side by side you do this very quickly but it takes a lot of time for me
@Faajj.r
@Faajj.r Ай бұрын
My player can't jump anymore:/
@EvaanPlayz
@EvaanPlayz Жыл бұрын
5:16
@amansaini4866
@amansaini4866 3 жыл бұрын
Hey Bro May This Game Exported For Android Please Reply
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Yes you could, you will need to change the input system though. Smartphones don't normally react to Input.GetAxis, you could add a couple buttons on the screen for left/right movement, jumping and shooting.
@LemonGuy1
@LemonGuy1 2 жыл бұрын
@@PandemoniumGameDev how to do that
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
@@LemonGuy1 Shortly: create 2 buttons which will make the value of the input 1 or -1. If you want a tutorial, you'll have to wait a couple weeks with my current upload schedule unfortunately.
@LemonGuy1
@LemonGuy1 2 жыл бұрын
@@PandemoniumGameDev Thanks. You are the best
@mraxle9028
@mraxle9028 2 жыл бұрын
whats the duplicate button?
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
CTRL+D on Windows or CMD+D on Mac
@Zaros3433k
@Zaros3433k 2 жыл бұрын
2 questions, after going through the this video my character when idle will blink in and out now instead of just idling normally like previously, any idea why this is the case? 2nd the walls created in this video work. But my player when jumping off of them actually jump on a invisible wall instead of actually jumping off the block (sprite render image) we created. Any idea how to make the character actually jump off of the image instead of an invisible wall? The box colliders for the walls are right where it needs to be in line with the images
@tomadn4139
@tomadn4139 2 жыл бұрын
For the blink setting Players Order in layer to 1 helped me
@ahmetsahan1776
@ahmetsahan1776 Жыл бұрын
@@tomadn4139 where can ı found this
Unity 2D Platformer for Complete Beginners - #6 CAMERA MOVEMENT
8:55
How to make a 2D platformer - Unity Tutorial Crash Course
40:32
bblakeyyy
Рет қаралды 176 М.
What Happens If You Trap Smoke In a Ball?
00:58
A4
Рет қаралды 16 МЛН
Tuition Wars - Gehan Blok & Dino Corera
15:07
Blok & Dino
Рет қаралды 1,1 МЛН
Can You Really Make A 2D Game In Unreal?
6:09
Thomas Brush
Рет қаралды 64 М.
Unity AI Can Create SPRITES FOR FREE!
6:59
SpeedTutor
Рет қаралды 11 М.
360° Camera Inside a Spherical Mirror (Interactive Version)
6:41
Action Lab Shorts
Рет қаралды 192 М.
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 1,9 МЛН
How to Create 2D Sprites & Import Them into Unity - Workflow Tutorial
9:01
Can BRAWLERS SURVIVE in The SMOKE BATTLE!?🤯 #brawlstars #bs #shorts
0:34
KINGS OFFICIAL YT
Рет қаралды 6 МЛН
Which one will take more 😉
0:27
Polar
Рет қаралды 25 МЛН
CJ Is Driving, But Auughh...
0:16
mesangedavril
Рет қаралды 44 МЛН
Baby Steve VS Bad Villager. Beach story. #shorts
0:25
ST-Mine
Рет қаралды 40 МЛН