Get my 17 hour 2D Top Down Unreal Engine Course at a discount: tinyurl.com/Unreal2DTopDown I forgot to clarify at the beginning of the video that I'm using UE 5.1 for this, so I recommend you also use UE 5.1 or newer for this! Some viewers are having issue with 5.0.x since the enhanced input action system isn't active by default but has to be turned on manually. If you start on 5.0.x you can just install 5.1 after, locate your project files on your hard drive, right click on the unreal engine project and select 'change Unreal Engine version' to update the project to 5.1 easily. But even if you want to stay on 5.0.x you can manually activate the enhanced input system. Once the project is open click on Plugins in the top bar and activate 'Enhanced Input'. In the project settings go to Input and set the Default Classes to EnhancedPlayerInput and EnhancedInputComponent. Delete all action and axis mappings of the old input system. After that just follow everything as it is in the tutorial.
Been trying to figure this out for a minute, thank you! In your favor, I watched the video like ten times trying figure out where I was going wrong lol.
My Sprite required different grid settings Cell Width - 15 Cell Height - 17 Margin Y - 221 Spacing X - 1 Spacing Y -7 Also seems to avoid the leg cut off issue - Guessing the asset was updated
I think learning how to make 2D games in Unreal is a great way to learn the core mechanics of the engine itself. because of your tutorials; coding in C++ is more comfortable. But I still have a long way to go.
Hey I was wondering if I could get help with this, I started following this tutorial up to about the 21:25 and did all of the stuff according to how you did it, but when it actually came to moving the character, it wouldn't budge and I don't know why. Please help me, someone!!! 😢😭😭
Hey, could it be that you are on UE 5.0.3? I just updated the pinned comment with instructions on how you could fix this. Sorry it took me so long to answer, but needed some more information to know what's going on and had to wait for a few more comments.
@@auracle7894 Hey, could it be that you are on UE 5.0.3? I just updated the pinned comment with instructions on how you could fix this. Sorry it took me so long to answer, but needed some more information to know what's going on and had to wait for a few more comments.
@@CobraCode Im always in the look out for your videos, and any time I see a new one I’m stoked to watch it! I believe that your videos will get more and more people using UE5 for 2D game dev, and paper ZD being free is just too good!
hey ! i've been stuck at 21:30 step since anything i do wont make me able to make the character move and i've wondered if it has something to do with that ? I've tried to activate them as you said but still nothings changed, do you have any ideas about how i could fix that ?
@@vramxn7793 hey! I fixed it a bit later I think and the answer was simply that I forgot to link the boxes between them ( with the big white lines) which made them unable to work !
@@greylyze9040 Are you talking about the Movement Inputs? I checked the box as @thinkinsidetheboxs said, but still having issues on 5.4.4. Does the event tick need to be connected somewhere?
Haha, thanks for the feedback. I know a couple of you have watched all videos, but I also always need to keep in mind the people that randomly stumble upon this and are complete beginners. It's nice to hear that the slow approach isn't annoying for you as an advanced viewer :)
great tutorial, I was asking some similar questions in the PZD discord and the guys there were super nice and showed me the way to do some of this stuff. Great community.
Hey man, just wanted to say thank you for making these absolute overkill tutorials! I’ve tried many times to get into game development but alway got discouraged. Thanks for the tutorials and for giving me inspiration and knowledge to work on a passion project. Keep up the amazing work!
I tried it, it works good for the walking animations but for the idle ones it cuts off the top row of pixels, I fixed it by going to the source text on a sprite and moving it up, you don’t have to go to each sprite separately you can just click on them.
At 24:34 literally tutorial doesn't work anymore. When I type Get Directionality in the blueprint.. I see you have Get Directionality under Variable but mine shows under Class. So when I try using mine it says Not compatible and I went back to see what I did wrong.. can't figure it out how you got Get Directionality under variable search ?
Hey, I'm pretty sure nothing changed regarding that. You simply need to create a variable that's a vector 2 on the character that is called Directionality. If you then cast properly in the init animation event on the animation BP you should be able to access that in the animation blueprint just like it's shown in 24:34 Please retrace your steps and make sure there are not mistakes.
I had the exact same issue where I was getting frustrated. Click on Context sensitive and make sure write "Get Directionality" by dragging from pin. It should come out
all your tutorials are great. would love a combat one where you show us how to add in attack animations multiple of them and have unique hit boxes for each!
Thank you! I do have a method of making what you're describing, but I'm not really happy with it yet and want to do more research to find a better way before making a video about it!
Thank you, this is awesome, i am planing on making an top down 2d game with a tile system just for learning the engien. And this will come in handy when i will find the time to do that :)
Cell Width: 16, Cell Height: 24, Margin Y: 192 This doesn't need any modification. The artist on the character sheet says the sprite dimensions are 16x17 but to treat them as 16x24
This is awesome my next project I want to make a paper Mario type game not a lot of good 2d tutorials for unreal I'll be coming back to the rest of this video when I'm ready to get started on the next game
Thank you so much for making videos like this, I love how detailed your instructions are for a beginner. I want to draw my own sprite just not sure yet what i want to draw.
I have run into a weird issue when setting the WASD keys using the 2d sprite. After save and compile When I press play the up-and-down directions work correctly, but left and right are backwards. Then I exit play and press play again without doing anything else and when I press the W or S to move the character up and down , the character only moves to the left or right. A little confusing but I’ll keep working on it and checking my code.
Hey dude, thanks for this video. I wanted to tell that I'm going to start game development in college soon this year, and I just want to be prepared with programs like Unreal 5 especially when it comes it to simpler 2D games. This will certainly help alot, and I hope I can put it to the test.
Awesome, I hope you'll have a great time at college and learn a lot! I actually also went to game dev college, so just some word of advice from me: Don't expect them to teach you all that much. Nobody can really teach you game dev. All they can do is guide you and prepare an environment for you to grow through group projects and challenges they put up for the students.
watching the first portion of this tutorial, i just made a solid grid by measuring the players pixel height and width then built a grid with those pixels in mind and re-saved. It only took like 2-3 minutes to do. I appreciate the tutorial, but it would be a lot easier in photoshop, asceprite, pyxeledit, etc.
Yeah if you're familiar with an image editing software that's definitely the way to go! However some users may not have any experience with that which is why I explained how to do it in engine. Sadly the sprites I used in this tutorial are under a license which doesn't allow me to redistribute them, otherwise I'd have fixed up the layout myself and given them out that way.
Keep coming back to your videos to figure stuff out. Would love a top down ai enemy tutorial too! So far, your channel has been my favorite I've found doing tutorials on PaperZD ♥
Super excited to learn how to do full pixel tilesets for top down games in unreal 5... I love working with unreal but it has always been fairly difficult to do 2d pixel games in unreal
Amazing tutorial, but do you have another video that goes into more detail about what all of those nodes are actually doing during the Get Controller portion within the BP_TopDownChar file? I felt like I was blindly following instructions without having context for what each node was responsible for at that point.
Hey, it's really hard to set a pacing that is perfect for every viewer and I always try to find the right balance between not explaining too much and not explaining too little. If you're looking for what a specific node does, this channel is great and has a videos going into detail on many different nodes: www.youtube.com/@MathewWadsteinTutorials
@@CobraCode I completely understand, I hope I didn't come across as criticizing the video! It helped me a ton and you've re-invigorated my passion for indie game development. I fully understand you have to keep pacing in mind with your tutorials though. Thank you so much for the extra resource, I'll check it out!
This is my first ever time trying out Unreal Engine 5, and I'm really glad to follow your guide in this video. Only problem I've encountered is that I have deleted the 'My Event' Tab for my blueprint page. Unfortunately I do not know how to re-open that tab. Wish me luck, so far this has been a blast.
Awesome, I'm glad you're enjoying Unreal Engine :D On the top bar there should be a tab called 'Window'. You should be able to activate windows you closed from there.
I like this tutorial, it's very concise and easy to understand! I am now trying to get my sprite to stop at the cube but instead it's moving through the cube. Any ideas?
Tutorial is easy to follow and understand, thanks! Could you make a tutorial that explains how to swap between walking and sprinting for 2D sprites? Can't find anything on it online.
Thank you! I believe in this video we cover how you can change the speed of an animation, but you could slightly modify that to play a different animation for running. th-cam.com/video/ogIyMrX_uws/w-d-xo.html
Good video but was hard to follow the node section at the end as didn’t explain what linked to where at times so had to pause a lot 😆 but I got it done in the end thanks 😊
Edit: The fix was to click on the game preview window. :| Then everything worked fine. Complete Unreal novice: I don't see any movement at 21:29 after creating the nodes in the event graph editor in the BF_TopDownCharacter Blueprint Class. I have double checked the blueprint class, the IA_Move and IMC_TopDown input steps, and the project setting, but there is nothing different about any of the modifiers or nodes as far as I can tell. When I run my level WASD doesn't effect the character in any way. As there any common rookie mistakes that might cause this absence of movement?
Ugh. I have gone through the tutorial three times and still can't get the movement to work. I think it's time to scrap the whole project and try for a fourth time.
You need to be sure you've got the plugin for enhanched input enabled if you're on an older version of UE, but also make sure you do the steps mentioned in Cobra Codes comment somewhere near the top, enabling the input settings in Project settings. That fixed things for me. I'm on UE4 and it works!
I have followed this tutorial four times and everytime I get to about the 21:00 mark when launching the game should allow me to change the direction of the character, it does not change direction. It just stays in Idle Up animation. Everything up to that point always works, every check point. I have deleted the project and started over twice just to make sure I was not running into reference issues. Still four times in it never changes direction. I am using 5.1. Does anyone have any idea why the direction of the animation never changes for me? Thanks!
But I missed something, in PaperZD Animation you only did walking animation. How should I connect the nodes to make an IF-ELSE statement to say: if player press SHIFT --> running animation, else if --> Walking, else --> Idle@@CobraCode
I'm not sure if you still check these comments. I've been running through your tutorial which is really good, by the way. I wish there were more teachers like you. I'm working in UE 5.4.2 and I'm having trouble getting my animations to play. After I built the inputs, I found that I can move the character using wasd, but the Up animation is the only one that plays.
i got my sprite moving in all the right directions with WASD, but when he moves to the right, he looks left, and when he moves to the left he looks right. Can anyone help me?
I'm losing my mind. I've gone over everything in the input section many times, but I just can't get my character to move around. I'm using UE 5.3, but all the settings seem to be correct. Has anybody had similar issues?
Hey! Everything should still work with 5.3 since there have been no changes to the Enhanced Input System. I'm not sure if you're a beginner with UE, but something that often happens is that people forget to click into the viewport once after starting the game to lock the mouse and take control of the game. Otherwise you might want to use some print strings on your begin play to see if the IMC is properly being assigned.
@1stDegree The print strings will help you to check if something is executing properly or not. For example on beginPlay we getController and cast to Playercontroller. You could have a print string after the cast to make sure the cast was correct and didn't fail. You can then step through your nodes like this step by step to try to find the problem.
Tbh, you did an amazing job. It is pretty much how I want my game to be towards the future. Kinda wish I would of tried RE5 before unity but no one had any info or tutorials on how to make a game similar to pokemon for RE so I just ended up stuck with unity which don't get me wrong is pretty fun and interesting to learn. But the learning curve of movements and player controllers is so different between both. I feel like RE5 is easier to use than unity from watching this video. Then again my brain has been fried with learning C++ xD
Thank you! Yeah coding in C# in Unity is definitely a lot easier than doing C++ in UE5. However the visual coding in UE is so much more advanced than anything else out there. I wouldn't really worry that much about C++ at first, in the end you'll always mix C++ with Blueprints and you can easily create your own nodes with C++ and replace stuff later on.
Man I love your tutorials and I also enrolled in your course form Udemy, I'm invested in making my own top down RPG and it would be amazing if you had that tutorial on Top down action rpg you mentioned by the end of the video. 31:50. Thanks!
Hi @CobraCode . First off, thanks for this tutorial. It worked like an absolute charm and I love it. I ran through this tutorial and everything worked expect for the material selection at 31:20 . I use UE 5.3 and the MaskedLitSpriteMaterial no longer seems to exist? In fact, nothing related to sprite seems to exist there. Can you tell me which material I should select otherwise or perhaps what alternative to use?
Hey, they should still be there, but they're in the plugins folder. You'll have to click the Cogwheel and make sure that 'show engine content' and 'show plugin content' is enabled. Sorry for not making that clear.
@@CobraCode Thnx alot for this answer, that was indeed what I was missing. Luckily for me I could continue due to some random internet stranger making a custom version of the material available. Now I know how to switch. Keep making the great content.
Love this whole tutorial, really inspired me to go for it~ I have a couple of questions though you might have an solution for: I struggle with doing it first person with hands only visible and look around with free cam. Since the world direction is set for X and Y is there a way to fix it? And the character is flat from other angles how would I give some width so it looks like a well proportioned character from all angles?
Thank you so much! Yeah things being locked to world direction in this tutorial is something I also am not that happy with, but I couldn't figure out a better way of doing it in time for the video. I've experimented a bit more recently and got things working for a side scroller in a way that it's independent from world direction, so I believe it should also be doable for the top down thing. Instead of the fixed world direction on the Add Movement Input node you'll want to use Get Actor Forward Vector and Get Actor Right Vector. But you'll probably have to change the way PaperZD switches between the animation direction. About the character thickness. That's actually something I'm also interested in but haven't gotten around to trying out yet. I believe you should probably be able to create an effect like that through material nodes though, since you can basically create your own shaders and can change the way vertices are displayed in there. I'm also not that great with material nodes yet, so something that needs looking into.
Did I miss anything here that explains setting up camera occlusion masking on meshes? The problems I run into in creating 3d worlds are camera clipping on meshes. I've been trying to figure out how to make an occlusion mask work similar to the diablo camera that allows me to see the character when there are meshes between it and the camera.
Maybe this is because I'm using the legacy input axis system, but the directionality resets to 0,0 when the character is not moving, making it always face left when idle. Do you know how to fix this?
Thank you for the video, it helped a lot. But there is a question, please tell me how to adjust the rotation of the animation for the 16 directed character following the mouse (like top down shooter)
Huh, what a neat coincidence. I was just thinking of making a top down... 3d game, let's be honest, this is 3d. i was going to use gzdoom to give it some character unique style and style but... yeah i don't think that's ideal. it's going to be a lot of work to do what i had in mind in that game. I'm going to give this a shot first.
Hello, At 21:40 you mentioned a way to adjust movement based on rotation, what would be the best way to start by learning this method? I was able to make the camera rotatable but when I change views the controls are backward just like you mentioned in the video. Thanks.
Hey, Sadly I haven't really had the time to look into that yet. I did try to do it that way once, but that was about a year ago and the attempt didn't go so well. So far I haven't found it necessary to change the system, since issues can easily be avoided by just keeping the world rotation in mind when building your levels. If you use a prebuilt level you can just just select all items and rotate everything to make it match the world rotation. But yeah it would be ideal to create a system that doesn't depend on the world rotation. I guess you can start by using the forward rotation of the character for the move forward node and the right direction of the character for the sideways node and see how that works out.
@@hardenednutrition Some people were having a conversation about this same issue on our discord a while ago. Maybe it will lead you into the right direction: discord.com/channels/918791952751792129/997343771077382164/1080282863011905696
for some reason (yeah something unity did) i have to find another gameengine to rebuild my game based on unity, i hope it can be a series so i can learn more from ue's 2d game devolop pipline
I'd love to see a video where you make a template for making 2D games; that way, players don't have to repeat the same project settings adjustments every time they start a new 2D project.
Hey, I actually have an open source 2D template you can use! github.com/CobraCodeDev/TP_2DSideScrollerBP I think that sadly it is too advanced and niche of a topic for a video
Hello I was just casually following the tutorial when I got to 9:49 and I set the filter on accident to all of the things in paper 2d instead of just sprites and flipbook but when I unselected all the assets all my folders disappeared and it only shows the sprites even with the filter off. And I am very confused because it says when I tried to create a folder with the same name, it says there already is a folder there in that location. I am hoping that it maybe turned it invisible and that I didnt lose my progress but could someone help me out.
Thank you so much for the video!! It helped a lot with setting up a 2d character in unreal, your explanations were super easy to follow :) one thing I'm wondering tho is what are some ways to prevent the directional inputs getting messed up when the character rotation changes like you mentioned in 21:35? I've been tinkering with having the camera move based on mouse movement in a 3d environment and it causes the directional inputs of the 2d character to get constantly messed up and I'm not sure how to fix it lol
Hello! First of all thanks for the superb tutorial! I have a question: Ive drawn my own sprite and Ive made custom flipbooks which are composed of 5 frames instead of the 3 frames used on your example. The thing is that when im about to set the FB in each direction (the part at 13:37) I am not able to set the playback range stop time so i can adjust the animation to use all my frames. Can you help me? Thanks!!
Hey, so from what I heard from the developer of this plugin all of your animations of one group need to have the same length. You can't have the up direction be 3 frames and the down direction be 5 frames, it will just choose one and go with it. So it should start to work out once you have replaced all of your animations. If that doesn't work then just delete the animation sequence and create it newly from scratch.
Hey, sadly that turned out to be much more complex than I expected and wasn't something I could just put out on TH-cam. I am currently making a full Top Down 2D Udemy course though which has zelda like combat and also a 2D/3D hybrid project similar to octopath traveler with dialogue. It should release in September!
I have a problem with the Character Movement after I have followed every step. The Problem accures at 21.30 after I add an Player Start. I can not move my character when i start...
Hey, this is just a quick solution and it prioritizes up/down over left/right. You probably want the latest input to be dominant, so you might have to tinker with it, but this can be a starting point. blueprintue.com/blueprint/-ayd_5xq/
What if I want to use cursor to move,just like divinity 2 or Baldur's gate?Using get velocity isn't good enough,but I don't know where should I set the variables.
Hey, I guess in that case you'd probably want to get the forward vector of the character or the forward vector towards the target location you clicked and somehow use that as directionality.
Maybe someone could help me please. Set up the keys, but character moves only right and WASD keys dont work =( Awesome tutor tho...im already exited i went so far xD
Hey, look for Stylized Environment on the Unreal Engine marketplace. I don't quite remember which one exactly it is, but you should be able to find it with that.
I've gone through twice now and both times when I've 21:55 where the character is suppose to move, it's instead stuck in the walking right animation. I'm using my own sprites instead of the premade ones but other than that i've been following everything he does. Anyone else have a similar problem and know how to fix it?
Hey, in the character blueprint on the left side, select the character movement component. In the details panel on the right side then search for max walk speed and adjust the value.
Get my 17 hour 2D Top Down Unreal Engine Course at a discount:
tinyurl.com/Unreal2DTopDown
I forgot to clarify at the beginning of the video that I'm using UE 5.1 for this, so I recommend you also use UE 5.1 or newer for this!
Some viewers are having issue with 5.0.x since the enhanced input action system isn't active by default but has to be turned on manually.
If you start on 5.0.x you can just install 5.1 after, locate your project files on your hard drive, right click on the unreal engine project and select 'change Unreal Engine version' to update the project to 5.1 easily.
But even if you want to stay on 5.0.x you can manually activate the enhanced input system.
Once the project is open click on Plugins in the top bar and activate 'Enhanced Input'.
In the project settings go to Input and set the Default Classes to EnhancedPlayerInput and EnhancedInputComponent.
Delete all action and axis mappings of the old input system.
After that just follow everything as it is in the tutorial.
Been trying to figure this out for a minute, thank you! In your favor, I watched the video like ten times trying figure out where I was going wrong lol.
I INSTANTLY BOUGHT THIS COURSE BECAUSE OF THIS AWSOME TUTORIAL VIDEO! Keep em comming
Thank you so much :D@@9livesK9
Just bought the course on Udemy. This is exactly the kind of games I want to make. :) Thank you.
Awesome, thank you :D@@MrNBoaventura
the 2d character running around in 3d world is the best
like when spongebob comes out of the water
@@eubyg4890 weird comparison but very true lol
Paper Mario
@@hawshimagical lol
if you like headaches, yes
My Sprite required different grid settings
Cell Width - 15
Cell Height - 17
Margin Y - 221
Spacing X - 1
Spacing Y -7
Also seems to avoid the leg cut off issue - Guessing the asset was updated
you are a magician! ty was fiddeling for ages trying to line it up
thank you SM
Thank you
I like this combo it makes you feel like you’re playing two types of games at once
Your tutorials help me so much. I am making a paper mario spiritual successor and this is incredibly helpful towards that aim.
so far a few things have charged around but i believe i got them figured out until 21:30 where my character cant move in ue 5.4.4
Same here. Idk what’s going on.
@@HeyRnold Just chiming in to say the same.
I think learning how to make 2D games in Unreal is a great way to learn the core mechanics of the engine itself. because of your tutorials; coding in C++ is more comfortable. But I still have a long way to go.
Hey I was wondering if I could get help with this, I started following this tutorial up to about the 21:25 and did all of the stuff according to how you did it, but when it actually came to moving the character, it wouldn't budge and I don't know why. Please help me, someone!!! 😢😭😭
same problem for me here
same
Hey, could it be that you are on UE 5.0.3?
I just updated the pinned comment with instructions on how you could fix this.
Sorry it took me so long to answer, but needed some more information to know what's going on and had to wait for a few more comments.
@@auracle7894 Hey, could it be that you are on UE 5.0.3?
I just updated the pinned comment with instructions on how you could fix this.
Sorry it took me so long to answer, but needed some more information to know what's going on and had to wait for a few more comments.
The best, without question, THE BEST Unreal tutorial I've ever taken. Amazing.
Thank you so much :D
Great tutorial, I love the step by step and the patience it must take to go through these videos, very clear and easy to follow!
Thank you :D
Thank you for filling the whole that Brackeys left behind! I don't make games myself but watching things like this is so fun to watch
Thank you :)
Brackeys was amazing, yeah!
Taught me more about Unity and making games than my school did.
Hole
This is a really good tutorial, your content is always getting better and better, good job!
Thank you so much for always watching my videos and leaving nice comments :D
It's really motivating!
@@CobraCode Im always in the look out for your videos, and any time I see a new one I’m stoked to watch it! I believe that your videos will get more and more people using UE5 for 2D game dev, and paper ZD being free is just too good!
FOR the ones in 5.3.2 INPUT CONSUMPTION under IA_Move is now 2 check boxes both should be on took me some time to figure this one out lol!
hey ! i've been stuck at 21:30 step since anything i do wont make me able to make the character move and i've wondered if it has something to do with that ? I've tried to activate them as you said but still nothings changed, do you have any ideas about how i could fix that ?
@@greylyze9040 im having the same issue on ue 5.4.4
@@vramxn7793 hey! I fixed it a bit later I think and the answer was simply that I forgot to link the boxes between them ( with the big white lines) which made them unable to work !
@@greylyze9040 Are you talking about the Movement Inputs? I checked the box as @thinkinsidetheboxs said, but still having issues on 5.4.4. Does the event tick need to be connected somewhere?
@@greylyze9040 Nevermind I found it! Was it Cast to PlayerController to AddMappingContext for you too? HAHA. That was driving me insane
Loved this one can't wait for the next part for combat
I love how you start it like we are new here. It helps alot. (this is not a joke)
Haha, thanks for the feedback.
I know a couple of you have watched all videos, but I also always need to keep in mind the people that randomly stumble upon this and are complete beginners.
It's nice to hear that the slow approach isn't annoying for you as an advanced viewer :)
great tutorial, I was asking some similar questions in the PZD discord and the guys there were super nice and showed me the way to do some of this stuff. Great community.
Yeah paper ZD community is awesome and the dev himself also helps a lot of people there.
He's actually also in my discord supporting many devs!
would love to see a tutorial from you on how to make top down combat using this setup! loved your tutorials, so simple and easy to follow!
Hey man, just wanted to say thank you for making these absolute overkill tutorials! I’ve tried many times to get into game development but alway got discouraged. Thanks for the tutorials and for giving me inspiration and knowledge to work on a passion project. Keep up the amazing work!
Thank you for the kind words :D
I hope you'll be able to stick it through and finish that game eventually!
The spacing Y is actually 7. if you use 7 instead of 6 you don't have to move any sprites individually
I tried it, it works good for the walking animations but for the idle ones it cuts off the top row of pixels, I fixed it by going to the source text on a sprite and moving it up, you don’t have to go to each sprite separately you can just click on them.
Cell Width: 16, Cell Height: 24, Margin Y: 192
At 24:34 literally tutorial doesn't work anymore. When I type Get Directionality in the blueprint.. I see you have Get Directionality under Variable but mine shows under Class. So when I try using mine it says Not compatible and I went back to see what I did wrong.. can't figure it out how you got Get Directionality under variable search
?
Hey, I'm pretty sure nothing changed regarding that.
You simply need to create a variable that's a vector 2 on the character that is called Directionality.
If you then cast properly in the init animation event on the animation BP you should be able to access that in the animation blueprint just like it's shown in 24:34
Please retrace your steps and make sure there are not mistakes.
I had the exact same issue where I was getting frustrated. Click on Context sensitive and make sure write "Get Directionality" by dragging from pin. It should come out
all your tutorials are great. would love a combat one where you show us how to add in attack animations multiple of them and have unique hit boxes for each!
Thank you!
I do have a method of making what you're describing, but I'm not really happy with it yet and want to do more research to find a better way before making a video about it!
@@CobraCode sounds good I look forward to it
Thank you, this is awesome, i am planing on making an top down 2d game with a tile system just for learning the engien. And this will come in handy when i will find the time to do that :)
Cell Width: 16, Cell Height: 24, Margin Y: 192
This doesn't need any modification.
The artist on the character sheet says the sprite dimensions are 16x17 but to treat them as 16x24
This is awesome my next project I want to make a paper Mario type game not a lot of good 2d tutorials for unreal I'll be coming back to the rest of this video when I'm ready to get started on the next game
Thank you so much for making videos like this, I love how detailed your instructions are for a beginner. I want to draw my own sprite just not sure yet what i want to draw.
Thank you :D
I have run into a weird issue when setting the WASD keys using the 2d sprite.
After save and compile
When I press play the up-and-down directions work correctly, but left and right are backwards.
Then I exit play and press play again without doing anything else and when I press the W or S to move the character up and down , the character only moves to the left or right. A little confusing but I’ll keep working on it and checking my code.
Great video! the pace of the video was perfect and everything worked as it should
Your tutorial is very informative and awesome :) we are lucky to have you.
Hey dude, thanks for this video.
I wanted to tell that I'm going to start game development in college soon this year, and I just want to be prepared with programs like Unreal 5 especially when it comes it to simpler 2D games. This will certainly help alot, and I hope I can put it to the test.
Awesome, I hope you'll have a great time at college and learn a lot!
I actually also went to game dev college, so just some word of advice from me:
Don't expect them to teach you all that much. Nobody can really teach you game dev.
All they can do is guide you and prepare an environment for you to grow through group projects and challenges they put up for the students.
I never enjoyed in my life that much, finally I have feeling my childhood dreams coming true, thanks ❤
Well.. that's my weekend covered ! Thank you 🙏
You got me to start learning unreal engine, hope i can be as good as you someday !!!
I'm sure you will be if you stick to it!
Amazing work !! Keep this up . Love it
Thank you :D
Very handsome end result
YES! Been waiting for this!!! Thank you!
watching the first portion of this tutorial, i just made a solid grid by measuring the players pixel height and width then built a grid with those pixels in mind and re-saved. It only took like 2-3 minutes to do. I appreciate the tutorial, but it would be a lot easier in photoshop, asceprite, pyxeledit, etc.
Yeah if you're familiar with an image editing software that's definitely the way to go!
However some users may not have any experience with that which is why I explained how to do it in engine.
Sadly the sprites I used in this tutorial are under a license which doesn't allow me to redistribute them, otherwise I'd have fixed up the layout myself and given them out that way.
@@CobraCode good tutorial either way, thanks for sharing as usual
Can't get my pawn to move at all at 21:30
hey i got the exact same issue, did u find a solution since then?
@@greylyze9040 I was on the wrong version of ue5 lol
This 2d character/3d world style reminds me of Ragnarok Online. I loved that game back in the day.
Keep coming back to your videos to figure stuff out. Would love a top down ai enemy tutorial too! So far, your channel has been my favorite I've found doing tutorials on PaperZD ♥
Thank you so much :)
Super excited to learn how to do full pixel tilesets for top down games in unreal 5...
I love working with unreal but it has always been fairly difficult to do 2d pixel games in unreal
This tutorial has everything! Awesome
Very happy to finally be able to release this long awaited video!
Support the channel on Patreon:
www.patreon.com/CobraCode
Thanks man, subbed and liked a few of the videos. Doing alot for the gaming community
Thank you :)
Great Video Thank you Very Much!! My First Day on Unreal and this was perfect!
Thank you for making this tutorial!
Just bought your Udemy Course. Looks good. I especially loved the NES Track and Field clone. I'm excited to dig in. :D
Thank you :D
Awesome, I also had a lot of fun making that section.
Amazing tutorial, but do you have another video that goes into more detail about what all of those nodes are actually doing during the Get Controller portion within the BP_TopDownChar file? I felt like I was blindly following instructions without having context for what each node was responsible for at that point.
Hey, it's really hard to set a pacing that is perfect for every viewer and I always try to find the right balance between not explaining too much and not explaining too little.
If you're looking for what a specific node does, this channel is great and has a videos going into detail on many different nodes:
www.youtube.com/@MathewWadsteinTutorials
@@CobraCode I completely understand, I hope I didn't come across as criticizing the video! It helped me a ton and you've re-invigorated my passion for indie game development. I fully understand you have to keep pacing in mind with your tutorials though. Thank you so much for the extra resource, I'll check it out!
@@BeeDubs93
It's all good :D
Thank you!
This is my first ever time trying out Unreal Engine 5, and I'm really glad to follow your guide in this video. Only problem I've encountered is that I have deleted the 'My Event' Tab for my blueprint page. Unfortunately I do not know how to re-open that tab. Wish me luck, so far this has been a blast.
Awesome, I'm glad you're enjoying Unreal Engine :D
On the top bar there should be a tab called 'Window'.
You should be able to activate windows you closed from there.
Thank you good sir! This is a very good tutorial
I like this tutorial, it's very concise and easy to understand! I am now trying to get my sprite to stop at the cube but instead it's moving through the cube. Any ideas?
thank you :)
The most likely scenario is that there's something wrong with your collision settings
Tutorial is easy to follow and understand, thanks! Could you make a tutorial that explains how to swap between walking and sprinting for 2D sprites? Can't find anything on it online.
Thank you!
I believe in this video we cover how you can change the speed of an animation, but you could slightly modify that to play a different animation for running.
th-cam.com/video/ogIyMrX_uws/w-d-xo.html
thanks so much man.amazing tutorial
Not bad, even with common pitfall demos.
Great video. In depth but not bloated and very easy to follow. Looking forward to the combat video if you ever get around to it. 👍
Good video but was hard to follow the node section at the end as didn’t explain what linked to where at times so had to pause a lot 😆 but I got it done in the end thanks 😊
Edit: The fix was to click on the game preview window. :| Then everything worked fine.
Complete Unreal novice: I don't see any movement at 21:29 after creating the nodes in the event graph editor in the BF_TopDownCharacter Blueprint Class. I have double checked the blueprint class, the IA_Move and IMC_TopDown input steps, and the project setting, but there is nothing different about any of the modifiers or nodes as far as I can tell. When I run my level WASD doesn't effect the character in any way. As there any common rookie mistakes that might cause this absence of movement?
Ugh. I have gone through the tutorial three times and still can't get the movement to work. I think it's time to scrap the whole project and try for a fourth time.
Nothing. Everything works as shown up until 21:29 at which point there is no movement at all - just the sprite animation.
You need to be sure you've got the plugin for enhanched input enabled if you're on an older version of UE, but also make sure you do the steps mentioned in Cobra Codes comment somewhere near the top, enabling the input settings in Project settings. That fixed things for me. I'm on UE4 and it works!
I have followed this tutorial four times and everytime I get to about the 21:00 mark when launching the game should allow me to change the direction of the character, it does not change direction. It just stays in Idle Up animation. Everything up to that point always works, every check point. I have deleted the project and started over twice just to make sure I was not running into reference issues. Still four times in it never changes direction. I am using 5.1. Does anyone have any idea why the direction of the animation never changes for me? Thanks!
I'm also using 5.1.
Actually at 21:00 we still haven't implemented the directional change.
That happens from 22:30 onward.
@@CobraCode but you were already able to walk around, at the 21 min mark, I'm not =[
I enjoyed this video,
And I already bought a course on Udemy.
Awesome, thanks!
You just got a new subscriber. I hope you will grow big
Thank you :D
You Deserve a huge Like Dude
Thank you :D
But I missed something, in PaperZD Animation you only did walking animation.
How should I connect the nodes to make an IF-ELSE statement to say: if player press SHIFT --> running animation, else if --> Walking, else --> Idle@@CobraCode
I'm not sure if you still check these comments. I've been running through your tutorial which is really good, by the way. I wish there were more teachers like you. I'm working in UE 5.4.2 and I'm having trouble getting my animations to play. After I built the inputs, I found that I can move the character using wasd, but the Up animation is the only one that plays.
make sure the Boolean for IsHoldingDown is connected to Completed for false
Exactly what I was looking for 😀 Thanks!
Wow this is so cool! Thank you so much))
Thank you so much! This is what I needed
Awesome thank you once again
i got my sprite moving in all the right directions with WASD, but when he moves to the right, he looks left, and when he moves to the left he looks right. Can anyone help me?
On your directionality you might need to take the x value and multiply it by -1 to fix this.
I'm losing my mind. I've gone over everything in the input section many times, but I just can't get my character to move around. I'm using UE 5.3, but all the settings seem to be correct. Has anybody had similar issues?
Hey!
Everything should still work with 5.3 since there have been no changes to the Enhanced Input System.
I'm not sure if you're a beginner with UE, but something that often happens is that people forget to click into the viewport once after starting the game to lock the mouse and take control of the game.
Otherwise you might want to use some print strings on your begin play to see if the IMC is properly being assigned.
@1stDegree
The print strings will help you to check if something is executing properly or not.
For example on beginPlay we getController and cast to Playercontroller.
You could have a print string after the cast to make sure the cast was correct and didn't fail.
You can then step through your nodes like this step by step to try to find the problem.
Yo! Thanks so much for making this
Tbh, you did an amazing job. It is pretty much how I want my game to be towards the future. Kinda wish I would of tried RE5 before unity but no one had any info or tutorials on how to make a game similar to pokemon for RE so I just ended up stuck with unity which don't get me wrong is pretty fun and interesting to learn. But the learning curve of movements and player controllers is so different between both. I feel like RE5 is easier to use than unity from watching this video. Then again my brain has been fried with learning C++ xD
Thank you!
Yeah coding in C# in Unity is definitely a lot easier than doing C++ in UE5.
However the visual coding in UE is so much more advanced than anything else out there.
I wouldn't really worry that much about C++ at first, in the end you'll always mix C++ with Blueprints and you can easily create your own nodes with C++ and replace stuff later on.
Thank you for your video, it’s very good
I would like to ask if there is a way to trigger a 2D game interface in a 3D project?
Thank you.
Yeah UI Widgets work the same way with 2D and 3D games.
@@CobraCode Thank you very much. I understand!🙂.
Man I love your tutorials and I also enrolled in your course form Udemy, I'm invested in making my own top down RPG and it would be amazing if you had that tutorial on Top down action rpg you mentioned by the end of the video. 31:50. Thanks!
Thank you so much great tutorial. how to use point right click with mouse and character move to point
You can look at the 'top down template' that comes with unreal engine 5 as a reference, I think it has something like that built in
Hi @CobraCode . First off, thanks for this tutorial. It worked like an absolute charm and I love it. I ran through this tutorial and everything worked expect for the material selection at 31:20 . I use UE 5.3 and the MaskedLitSpriteMaterial no longer seems to exist? In fact, nothing related to sprite seems to exist there. Can you tell me which material I should select otherwise or perhaps what alternative to use?
Hey, they should still be there, but they're in the plugins folder.
You'll have to click the Cogwheel and make sure that 'show engine content' and 'show plugin content' is enabled.
Sorry for not making that clear.
@@CobraCode Thnx alot for this answer, that was indeed what I was missing. Luckily for me I could continue due to some random internet stranger making a custom version of the material available. Now I know how to switch. Keep making the great content.
Love this whole tutorial, really inspired me to go for it~
I have a couple of questions though you might have an solution for:
I struggle with doing it first person with hands only visible and look around with free cam.
Since the world direction is set for X and Y is there a way to fix it?
And the character is flat from other angles how would I give some width so it looks like a well proportioned character from all angles?
Thank you so much!
Yeah things being locked to world direction in this tutorial is something I also am not that happy with, but I couldn't figure out a better way of doing it in time for the video.
I've experimented a bit more recently and got things working for a side scroller in a way that it's independent from world direction, so I believe it should also be doable for the top down thing.
Instead of the fixed world direction on the Add Movement Input node you'll want to use Get Actor Forward Vector and Get Actor Right Vector.
But you'll probably have to change the way PaperZD switches between the animation direction.
About the character thickness. That's actually something I'm also interested in but haven't gotten around to trying out yet.
I believe you should probably be able to create an effect like that through material nodes though, since you can basically create your own shaders and can change the way vertices are displayed in there. I'm also not that great with material nodes yet, so something that needs looking into.
Did I miss anything here that explains setting up camera occlusion masking on meshes? The problems I run into in creating 3d worlds are camera clipping on meshes. I've been trying to figure out how to make an occlusion mask work similar to the diablo camera that allows me to see the character when there are meshes between it and the camera.
Hey, that's not covered here since it requires a base knowledge of materials, stencils and is a whole different can of worms to open up.
@@CobraCode No worries. I'll figure it out eventually! Thanks for this tutorial.
love your ue2d tutor
thank you so much this tutorial is very useful! 🥰 I made it!!!
Maybe this is because I'm using the legacy input axis system, but the directionality resets to 0,0 when the character is not moving, making it always face left when idle. Do you know how to fix this?
Thank you for the video, it helped a lot.
But there is a question, please tell me how to adjust the rotation of the animation for the 16 directed character following the mouse (like top down shooter)
Huh, what a neat coincidence. I was just thinking of making a top down... 3d game, let's be honest, this is 3d. i was going to use gzdoom to give it some character unique style and style but... yeah i don't think that's ideal. it's going to be a lot of work to do what i had in mind in that game. I'm going to give this a shot first.
Hello,
At 21:40 you mentioned a way to adjust movement based on rotation, what would be the best way to start by learning this method? I was able to make the camera rotatable but when I change views the controls are backward just like you mentioned in the video.
Thanks.
Hey,
Sadly I haven't really had the time to look into that yet.
I did try to do it that way once, but that was about a year ago and the attempt didn't go so well.
So far I haven't found it necessary to change the system, since issues can easily be avoided by just keeping the world rotation in mind when building your levels.
If you use a prebuilt level you can just just select all items and rotate everything to make it match the world rotation.
But yeah it would be ideal to create a system that doesn't depend on the world rotation.
I guess you can start by using the forward rotation of the character for the move forward node and the right direction of the character for the sideways node and see how that works out.
Ok great, thank you for the reply! I will let you know if I find out anything for a good solution.
@@hardenednutrition Some people were having a conversation about this same issue on our discord a while ago. Maybe it will lead you into the right direction: discord.com/channels/918791952751792129/997343771077382164/1080282863011905696
@@CobraCode Thanks!
This is awsome. Thank you so much
for some reason (yeah something unity did) i have to find another gameengine to rebuild my game based on unity, i hope it can be a series so i can learn more from ue's 2d game devolop pipline
I'd love to see a video where you make a template for making 2D games; that way, players don't have to repeat the same project settings adjustments every time they start a new 2D project.
Hey, I actually have an open source 2D template you can use!
github.com/CobraCodeDev/TP_2DSideScrollerBP
I think that sadly it is too advanced and niche of a topic for a video
Hello I was just casually following the tutorial when I got to 9:49 and I set the filter on accident to all of the things in paper 2d instead of just sprites and flipbook but when I unselected all the assets all my folders disappeared and it only shows the sprites even with the filter off. And I am very confused because it says when I tried to create a folder with the same name, it says there already is a folder there in that location. I am hoping that it maybe turned it invisible and that I didnt lose my progress but could someone help me out.
Thank you so much for the video!! It helped a lot with setting up a 2d character in unreal, your explanations were super easy to follow :)
one thing I'm wondering tho is what are some ways to prevent the directional inputs getting messed up when the character rotation changes like you mentioned in 21:35? I've been tinkering with having the camera move based on mouse movement in a 3d environment and it causes the directional inputs of the 2d character to get constantly messed up and I'm not sure how to fix it lol
I want more games like that, 2D characters with 3D enviroment
How did you add that comment box in the event viewer when adding controls at 19:38? Your videos are incredible.
Thank you!
You just have to press 'c'
Hello! First of all thanks for the superb tutorial!
I have a question:
Ive drawn my own sprite and Ive made custom flipbooks which are composed of 5 frames instead of the 3 frames used on your example. The thing is that when im about to set the FB in each direction (the part at 13:37) I am not able to set the playback range stop time so i can adjust the animation to use all my frames. Can you help me? Thanks!!
Hey, so from what I heard from the developer of this plugin all of your animations of one group need to have the same length.
You can't have the up direction be 3 frames and the down direction be 5 frames, it will just choose one and go with it.
So it should start to work out once you have replaced all of your animations.
If that doesn't work then just delete the animation sequence and create it newly from scratch.
@@CobraCode i figured out and yes, thats correct!
Hey man! Great video. Did you ever get around to making those combat/Dialogue videos?
Hey, sadly that turned out to be much more complex than I expected and wasn't something I could just put out on TH-cam.
I am currently making a full Top Down 2D Udemy course though which has zelda like combat and also a 2D/3D hybrid project similar to octopath traveler with dialogue.
It should release in September!
@@CobraCode brilliant! Thank you for the reply. Can't wait to see the course!
I have a problem with the Character Movement after I have followed every step. The Problem accures at 21.30 after I add an Player Start. I can not move my character when i start...
did u find the fix?
9:17, my viewport has gone missing, what do I do?
I am using 5.2.1 and I can’t find Event on init did the Event name change, I couldn’t find anything helpful about it online. Thanks
is there a way to limit this movement to only up, down, left, and right? To get rid of diagonal movement
Hey, this is just a quick solution and it prioritizes up/down over left/right.
You probably want the latest input to be dominant, so you might have to tinker with it, but this can be a starting point.
blueprintue.com/blueprint/-ayd_5xq/
@@CobraCode wow you are the best thank you!!!
What if I want to use cursor to move,just like divinity 2 or Baldur's gate?Using get velocity isn't good enough,but I don't know where should I set the variables.
Hey, I guess in that case you'd probably want to get the forward vector of the character or the forward vector towards the target location you clicked and somehow use that as directionality.
Thank you very much!!
Maybe someone could help me please. Set up the keys, but character moves only right and WASD keys dont work =( Awesome tutor tho...im already exited i went so far xD
May I know where did you get the map in this time stamp: 16:00
Hey, look for Stylized Environment on the Unreal Engine marketplace.
I don't quite remember which one exactly it is, but you should be able to find it with that.
would love to see how it works in combat. bravo~
Currently working on a combat section for a project like this for a udemy course!
I think I'll eventually also bring something similar to TH-cam
I've gone through twice now and both times when I've 21:55 where the character is suppose to move, it's instead stuck in the walking right animation. I'm using my own sprites instead of the premade ones but other than that i've been following everything he does. Anyone else have a similar problem and know how to fix it?
Hey this might be related to your UE version and how enhanced input works with it.
Please check the pinned comment.
did u find the fix?
Hey where is the movement speed handled? I tried to make the character walk a little slower but i couldn't find the place or how to do it!
Hey, in the character blueprint on the left side, select the character movement component.
In the details panel on the right side then search for max walk speed and adjust the value.
@@CobraCodethank you so much!! I spent almost 25 minutes looking for it before coming here 😅