Make a 2D Top Down Game in Unreal Engine 5 - Tutorial

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 503

  • @CobraCode
    @CobraCode  Год назад +14

    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.

    • @hunterthompsonsingleton8979
      @hunterthompsonsingleton8979 Год назад +1

      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.

    • @9livesK9
      @9livesK9 9 месяцев назад +1

      I INSTANTLY BOUGHT THIS COURSE BECAUSE OF THIS AWSOME TUTORIAL VIDEO! Keep em comming

    • @CobraCode
      @CobraCode  9 месяцев назад

      Thank you so much :D@@9livesK9

    • @MrNBoaventura
      @MrNBoaventura 6 месяцев назад +1

      Just bought the course on Udemy. This is exactly the kind of games I want to make. :) Thank you.

    • @CobraCode
      @CobraCode  6 месяцев назад

      Awesome, thank you :D@@MrNBoaventura

  • @hawshimagical
    @hawshimagical Год назад +340

    the 2d character running around in 3d world is the best

  • @dylankenny-banks1373
    @dylankenny-banks1373 9 месяцев назад +10

    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

    • @r1eze850
      @r1eze850 8 месяцев назад

      you are a magician! ty was fiddeling for ages trying to line it up

    • @Cheesymud
      @Cheesymud Месяц назад

      thank you SM

  • @nios2859
    @nios2859 Год назад +5

    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!!! 😢😭😭

    • @auracle7894
      @auracle7894 Год назад +4

      same problem for me here

    • @quinnabon
      @quinnabon Год назад +2

      same

    • @CobraCode
      @CobraCode  Год назад +1

      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
      @CobraCode  Год назад +1

      @@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.

  • @derk8665
    @derk8665 11 месяцев назад +3

    Can't get my pawn to move at all at 21:30

    • @greylyze9040
      @greylyze9040 2 месяца назад

      hey i got the exact same issue, did u find a solution since then?

    • @derk8665
      @derk8665 2 месяца назад

      @@greylyze9040 I was on the wrong version of ue5 lol

  • @CobraCode
    @CobraCode  Год назад +13

    Very happy to finally be able to release this long awaited video!
    Support the channel on Patreon:
    www.patreon.com/CobraCode

  • @georgewilson5957
    @georgewilson5957 Год назад +75

    Your tutorials help me so much. I am making a paper mario spiritual successor and this is incredibly helpful towards that aim.

  • @SixAddams
    @SixAddams Год назад +2

    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?

    • @CobraCode
      @CobraCode  Год назад

      On your directionality you might need to take the x value and multiply it by -1 to fix this.

  • @ShowMeYourPotato
    @ShowMeYourPotato Год назад +19

    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!

  • @funadventurecity
    @funadventurecity Год назад +2

    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
    ?

    • @CobraCode
      @CobraCode  Год назад

      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.

    • @samalyward1824
      @samalyward1824 20 дней назад

      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

  • @ZaynNaz
    @ZaynNaz Год назад +21

    This is a really good tutorial, your content is always getting better and better, good job!

    • @CobraCode
      @CobraCode  Год назад +2

      Thank you so much for always watching my videos and leaving nice comments :D
      It's really motivating!

    • @ZaynNaz
      @ZaynNaz Год назад +1

      @@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!

  • @ThinkInSideTheBoxs
    @ThinkInSideTheBoxs 8 месяцев назад +3

    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!

    • @greylyze9040
      @greylyze9040 2 месяца назад

      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
      @vramxn7793 22 дня назад

      @@greylyze9040 im having the same issue on ue 5.4.4

    • @greylyze9040
      @greylyze9040 22 дня назад

      @@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 !

    • @retrorevolutiongames
      @retrorevolutiongames 22 дня назад

      @@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?

    • @retrorevolutiongames
      @retrorevolutiongames 22 дня назад

      @@greylyze9040 Nevermind I found it! Was it Cast to PlayerController to AddMappingContext for you too? HAHA. That was driving me insane

  • @ayes7641
    @ayes7641 Год назад +12

    The spacing Y is actually 7. if you use 7 instead of 6 you don't have to move any sprites individually

    • @magicmoon724
      @magicmoon724 Год назад

      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.

    • @daze8410
      @daze8410 8 месяцев назад

      Cell Width: 16, Cell Height: 24, Margin Y: 192

  • @michaelnelson7240
    @michaelnelson7240 Год назад +11

    I like this combo it makes you feel like you’re playing two types of games at once

  • @louieueckermann
    @louieueckermann Год назад +14

    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!

    • @CobraCode
      @CobraCode  Год назад +7

      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!

    • @louieueckermann
      @louieueckermann Год назад +1

      @@CobraCode sounds good I look forward to it

  • @cheeseost671
    @cheeseost671 Год назад +1

    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

  • @troutwithfingers
    @troutwithfingers Год назад +11

    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!

  • @draw4yourlife3
    @draw4yourlife3 Год назад +10

    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

    • @CobraCode
      @CobraCode  Год назад +3

      Thank you :)
      Brackeys was amazing, yeah!
      Taught me more about Unity and making games than my school did.

    • @ponkotuu
      @ponkotuu Год назад +2

      Hole

  • @snokalo208
    @snokalo208 Год назад +3

    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?

  • @JarrahTheCreator
    @JarrahTheCreator Год назад +26

    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!

    • @CobraCode
      @CobraCode  Год назад +3

      Thank you for the kind words :D
      I hope you'll be able to stick it through and finish that game eventually!

  • @gamerdweebentertainment1616
    @gamerdweebentertainment1616 Год назад +2

    Not bad, even with common pitfall demos.

  • @easternunit2009
    @easternunit2009 6 месяцев назад +2

    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.

  • @Bloodyshinta1
    @Bloodyshinta1 Год назад +6

    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.

    • @satanicdude
      @satanicdude 7 месяцев назад

      what is the paperZD discord called? I am trying to find it, but no luck yet.

  • @HoldenTudiks81
    @HoldenTudiks81 Год назад +5

    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.

    • @CobraCode
      @CobraCode  Год назад +1

      Thank you :D

    • @HoldenTudiks81
      @HoldenTudiks81 Год назад +1

      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.

  • @135friend
    @135friend 25 дней назад +1

    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.

    • @CobraCode
      @CobraCode  25 дней назад +1

      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

  • @Kill3dge
    @Kill3dge 7 месяцев назад +1

    Great tutorial! love all 2d series that you've made!! but I have a one question, in 2d/3d hybrid how you setup "directionality" for the enemy actors? character takes it from the input, but what about AI?

    • @CobraCode
      @CobraCode  7 месяцев назад

      Hey, you'd have to calculate the directionality value from the actor forward direction in that case or from the velocity.

  • @dandanishere1
    @dandanishere1 Год назад +3

    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?

    • @CobraCode
      @CobraCode  Год назад +1

      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.

  • @AzulAngldor
    @AzulAngldor 6 месяцев назад +1

    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.

    • @CobraCode
      @CobraCode  6 месяцев назад

      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.

  • @damonrocha5640
    @damonrocha5640 3 месяца назад +1

    If you are having a hard time extracting the character sprites change the following:
    Margin 222
    Spacing Y: 6

    • @Chromixxxx
      @Chromixxxx 2 месяца назад

      Thank you was having a hard time getting the values

  • @leonv983
    @leonv983 6 месяцев назад +1

    honestly, it's so much faster to fix it in aseprite :D

  • @peakakupo
    @peakakupo Год назад +6

    Amazing work !! Keep this up . Love it

  • @cj013810
    @cj013810 Год назад +5

    Loved this one can't wait for the next part for combat

  • @danielpacker8227
    @danielpacker8227 Год назад +3

    This is a great tutorial! I really appreciate how you've described everything, but I do have a question: If I'm spawning a bullet or projectile, how do I set the velocity of the bullet to match the direction that the player is facing? Any insight would be greatly appreciated!

  • @artgun13
    @artgun13 Год назад +2

    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)

  • @newme1517
    @newme1517 Год назад +1

    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...

  • @vramxn7793
    @vramxn7793 22 дня назад +1

    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

    • @HeyRnold
      @HeyRnold 7 дней назад

      Same here. Idk what’s going on.

  • @alod4412
    @alod4412 Год назад +1

    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

  • @granthse
    @granthse Год назад +2

    someone remake a pokemon game like this plz i beg. its not like gamefreak is going to give us anything good

  • @ericandresen680
    @ericandresen680 Год назад +3

    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 :)

  • @Aproposkainable
    @Aproposkainable Год назад +3

    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

  • @dillionmuse
    @dillionmuse Год назад +4

    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 ♥

  • @doomdyt
    @doomdyt Год назад +2

    I was trying to find the PaperZD character blueprint, but it's now showing... Should I just select the regular PaperCharacter Blueprint?
    *EDIT: I was looking through my plugins and realized it wasn't activated from the start. Sorry Cobra!)

    • @doomdyt
      @doomdyt Год назад

      @Cobra Code, you should make a video on 8 dimensional movement sprites! I would really love to see a video on that. If you're willing to that is....

  • @GbrielB
    @GbrielB Год назад +3

    I want more games like that, 2D characters with 3D enviroment

  • @bellz53
    @bellz53 Год назад +1

    Very good tutorial but when I stop moving the character is stuck in the walk animation but doesn't move. And every time I stop the sound IsStuck sound would play, does anyone know how to fix this?

  • @brnz01
    @brnz01 2 месяца назад +1

    my up left walk animation looks like a run

  • @TristinOnFoNem
    @TristinOnFoNem 2 месяца назад +1

    thanks so much man.amazing tutorial

  • @DATECStudio
    @DATECStudio Год назад +2

    I never enjoyed in my life that much, finally I have feeling my childhood dreams coming true, thanks ❤

  • @daze8410
    @daze8410 8 месяцев назад +1

    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

  • @jonosaa
    @jonosaa 7 месяцев назад +2

    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.

    • @CobraCode
      @CobraCode  7 месяцев назад

      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.
      ruclips.net/video/ogIyMrX_uws/видео.html

  • @djsting
    @djsting Год назад +2

    Just bought your Udemy Course. Looks good. I especially loved the NES Track and Field clone. I'm excited to dig in. :D

    • @CobraCode
      @CobraCode  Год назад

      Thank you :D
      Awesome, I also had a lot of fun making that section.

  • @groovelife415
    @groovelife415 2 месяца назад +1

    This 2d character/3d world style reminds me of Ragnarok Online. I loved that game back in the day.

  • @vincentdonelli2905
    @vincentdonelli2905 Год назад +1

    My input doesn't move the character. Enhanced inpt is enabled, but nothing happens when I push keys, it won't even trigger debug print strings. If I add input from the tick my guy runs away fast.

    • @vincentdonelli2905
      @vincentdonelli2905 Год назад

      I checked the event graph on character and double checked everything you showed. Is there anyhting else anyone can think of?

    • @CobraCode
      @CobraCode  Год назад

      Hey, not quite sure what exactly is the issue.
      Not sure if you already checked the pinned comment, but it talks about the version differences and how you can fix these things.
      There are multiple steps to activating the enhanced input system if you're on 5.0, so you might be missing one or you just forgot to select the correct Input Context when initializing the system on begin play..

    • @sunnymuo
      @sunnymuo Год назад +1

      I’m having the same issue, did you figure it out?

  • @Yannemal
    @Yannemal Год назад +3

    Well.. that's my weekend covered ! Thank you 🙏

  • @wakamot
    @wakamot Год назад +2

    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?

    • @CobraCode
      @CobraCode  Год назад +1

      thank you :)
      The most likely scenario is that there's something wrong with your collision settings

  • @Lyserus
    @Lyserus Год назад +3

    Your tutorial is very informative and awesome :) we are lucky to have you.

  • @darkuskain
    @darkuskain Месяц назад +1

    Hey man! Great video. Did you ever get around to making those combat/Dialogue videos?

    • @CobraCode
      @CobraCode  Месяц назад +1

      Hey, sadly that turned out to be much more complex than I expected and wasn't something I could just put out on RUclips.
      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!

    • @darkuskain
      @darkuskain Месяц назад +1

      @@CobraCode brilliant! Thank you for the reply. Can't wait to see the course!

  • @themadcomputerscientist
    @themadcomputerscientist Год назад +1

    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!

    • @CobraCode
      @CobraCode  Год назад

      I'm also using 5.1.
      Actually at 21:00 we still haven't implemented the directional change.
      That happens from 22:30 onward.

    • @jkohlg89
      @jkohlg89 Год назад +1

      @@CobraCode but you were already able to walk around, at the 21 min mark, I'm not =[

  • @atomiklam
    @atomiklam 5 месяцев назад +1

    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.

    • @CobraCode
      @CobraCode  5 месяцев назад

      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.

    • @atomiklam
      @atomiklam 5 месяцев назад

      @@CobraCode No worries. I'll figure it out eventually! Thanks for this tutorial.

  • @大學樹德
    @大學樹德 8 месяцев назад +1

    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?

    • @CobraCode
      @CobraCode  8 месяцев назад +1

      Thank you.
      Yeah UI Widgets work the same way with 2D and 3D games.

    • @大學樹德
      @大學樹德 8 месяцев назад +1

      @@CobraCode Thank you very much. I understand!🙂.

  • @RioFordays
    @RioFordays 3 месяца назад

    Awesome vid. Thank you for sharing this knowledge.
    I have a question (sorry if it's been asked before) :
    How would you go about controlling the way the character is facing after coming off perfect up or down movement? By default it reverts to facing right.
    Is there a way to make it so it remembers the way you were facing before moving up or down? So if you were facing left before moving, idle will revert to facing left when you're done.
    Edit :
    Solved it by myself.
    Anybody reading this still struggling with it, the solution I found is to set a check (with a Branch or something else) that checks on both the X and Y values out of the SET of the directional Vector 2D variable (after the initial Add Movement Input), and SET a new boolean variable called 'IsFacingRight' or something that gets ticked on or off depending on the result, that you can call upon later when the character stops moving. After IA_Move input is completed, use a Branch to check on the IsFacingRight variable. Depending on whether the IsFacingRight variable is true or false, SET the directional variable's X axis to either be 1.0 if true, or -1.0 if false.
    That way the character will always face the last direction they were going towards when they come off the moving up or down animation.
    Hopefully that helps.

  • @1Chitus
    @1Chitus Год назад +2

    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.

    • @CobraCode
      @CobraCode  Год назад +1

      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!

  • @michaelstrode5363
    @michaelstrode5363 23 дня назад

    So running into a slight issue? with UE5.4 as soon as i make the first blueprint, and try to go back and adjust pixel height it just gets rid of the capsule? anyone have an idea?

  • @EstebanLopez-bn9pd
    @EstebanLopez-bn9pd 7 месяцев назад +1

    Hey, quick question.
    Where would I get the directionality values from if I am making an AI?
    Thank you!
    I love your courses by the way.

    • @CobraCode
      @CobraCode  7 месяцев назад

      Hey, you could probably get them from actor forward vector.
      You might have to use some print strings to figure out what values you get and how you'll have to convert them to use them for the directionality.

    • @EstebanLopez-bn9pd
      @EstebanLopez-bn9pd 7 месяцев назад +1

      @@CobraCodeThank you for your quick response!
      What I ended up doing was in my BP_EnemyBase GetActorRotation -> GetForwardVector -> SetDirectionality taking the X and Y values from the Forward Vector, and I call this on Event Tick.
      So far it's working.
      Thank you!

    • @CobraCode
      @CobraCode  7 месяцев назад

      @@EstebanLopez-bn9pd
      Awesome, I'm glad it worked!
      Thanks for sharing your solution too!

  • @KamFitInc
    @KamFitInc Год назад +2

    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.

    • @CobraCode
      @CobraCode  Год назад +1

      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.

  • @LukkaVukka
    @LukkaVukka 7 месяцев назад

    Hey Cobra, first of thank you for another great video!
    One thing I noticed and wonder if you could help me solve it is: When running into a wall diagonally (for example while holding down+right, up+left etc.) the animation doesn't slow down. It only slows down while walking directly into the wall (while only holding W, A, S or D).
    Thank you!

  • @MowDestroyer
    @MowDestroyer 8 месяцев назад +2

    I love how you start it like we are new here. It helps alot. (this is not a joke)

    • @CobraCode
      @CobraCode  8 месяцев назад

      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 :)

  • @bradenwardle8402
    @bradenwardle8402 7 месяцев назад +1

    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.

    • @CobraCode
      @CobraCode  7 месяцев назад +1

      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

    • @bradenwardle8402
      @bradenwardle8402 7 месяцев назад +1

      @@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!

    • @CobraCode
      @CobraCode  7 месяцев назад

      @@bradenwardle8402
      It's all good :D
      Thank you!

  • @diehardzombiefan
    @diehardzombiefan Год назад +1

    How do you make it move as soon as you press play? I have to press play, then click in order to start moving around.

  • @GraveUypo
    @GraveUypo Год назад +1

    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.

  • @BahamaT-n9h
    @BahamaT-n9h 9 месяцев назад

    Helloo, first of all thank you for your tutorial, i'm using Unreal 5.2.1, in my case, my character still not move using WSAD with enhanced input, i already checy your pinned comments but it still not working... do you know how to fix it? thank you very much

  • @magegames6202
    @magegames6202 Год назад +1

    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

  • @mistermakebelieve
    @mistermakebelieve 8 месяцев назад +2

    The best, without question, THE BEST Unreal tutorial I've ever taken. Amazing.

    • @CobraCode
      @CobraCode  8 месяцев назад +1

      Thank you so much :D

  • @saint9271991
    @saint9271991 4 месяца назад

    Great tutorial, however, I am having one issue. All animations and inputs work so that I can move the character around correctly, but when i stop moving, the character and the screen keep sliding in whatever direction I move as if he is walking around on ice. Is there any way to fix this? Thanks again!

  • @ganzuwastaken8896
    @ganzuwastaken8896 4 месяца назад

    Super helpful,Im currently trying to make my first game using this template!
    I want to ask though, Ive connected a spotlight to my character to act as a flashlight but it only faces one direction, I want it so wherever my character's walking towards the beam of light would face that direction but I can't seem to find any solution in any yt tutorial or forum, any suggestions I can try

  • @graviti3779
    @graviti3779 4 месяца назад

    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

  • @Pupills
    @Pupills 5 месяцев назад

    Amazing video, but I've got an issue that I can't seem to find the fix for. Both movement and the sprite animation are inverted on X and Y axis. Do you have any idea what might have caused this and how to fix it? I found how to fix the movement and X axis animation, by just inputting inverted values of what you showed, but I would just love to fix this issue at the root. Thanks in advance! :)

  • @TheWiscoKid
    @TheWiscoKid 5 месяцев назад

    Im trying to follow this, and it is awesome, but running into some issues when setting up these graphs. It seems that some of the methods have either changed or are not compatible with what we are trying to accomplish. I could have just messed up somewhere, but im following pretty close.

  • @kylepruesel
    @kylepruesel 6 месяцев назад +1

    is there a way to limit this movement to only up, down, left, and right? To get rid of diagonal movement

    • @CobraCode
      @CobraCode  6 месяцев назад +1

      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/

    • @kylepruesel
      @kylepruesel 6 месяцев назад +1

      @@CobraCode wow you are the best thank you!!!

  • @Ma4iM
    @Ma4iM 9 месяцев назад

    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

  • @mrmike6600
    @mrmike6600 Год назад +1

    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 😊

  • @igor9919
    @igor9919 11 месяцев назад

    I imported a map, but everytime I press play the player starts at the default grid level, even if I drop the player start in the newly imported level.. I went to window settings, maps and modes, changed the default map to the imported one, no luck…

  • @EpicGamer-uw6ce
    @EpicGamer-uw6ce 8 месяцев назад

    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.

  • @Silentismn
    @Silentismn Год назад +1

    Is there a way to set the directionality that works with point and click system (or perhaps even hybrid P&C/WASD, like Dont Starve)? I tried messing around in the Top Down template but i only got it to half work using get velocity, but then the character always faces right instead of using the proper idle animation and still have wall problems when transitioning to WASD like you demonstrated.

    • @CobraCode
      @CobraCode  Год назад

      That's something I haven't tried yet, so I can't really give too much good advice.
      But yeah it should definitely be doable.
      You'd have to create some sort of function on your character that calculates the Vector2D value that PaperZD needs to know to look into which direction.
      Sounds like this will be quite tricky, but with enough trial and error it should definitely be doable.

  • @OLucasQueJoga
    @OLucasQueJoga 5 месяцев назад +1

    Thank you very much!!

  • @rodge_dodge
    @rodge_dodge 9 месяцев назад

    When switching back to idle my character simply reset the directionality to 0, is there a way of fixing it?

  • @pepijn23
    @pepijn23 8 месяцев назад +1

    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.

    • @CobraCode
      @CobraCode  8 месяцев назад +1

      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.

  •  Год назад +1

    Hi, I'm finding so much joy and inspiration from this video!! I'm totally new at developing and I'm wondering what are the minimum specs of a computer to easily run Unreal Engine 5.1+ and make top down 2D games like this?
    Thanks for the thorough tutorial and inspiration. You've got a new follower!

    • @CobraCode
      @CobraCode  Год назад

      Thank you :D
      Sadly specs aren't something I'm too familiar with since I have a pretty beefy setup and never really struggled with running UE.
      This article I found might be helpful though:
      www.flaneer.com/blog/best-computer-to-run-unreal-engine-5

  • @razorgmyt6772
    @razorgmyt6772 Год назад +2

    It's funny how unreal engine is good for 2d and how 3d tools fit 2d too it's like they did it on purpose
    note: Why don't you use a square instead of using a cylinder for the collision? it's not possible?
    thanks for the tutorial you are amazing

    • @CobraCode
      @CobraCode  Год назад

      The Character base class provided by Unreal Engine uses Capsule Collision, so you'd need to make a new C++ class if you wanted to override it.
      Not quite sure if the Character Movement Component depends on a capsule though or if you could use a square.
      But actually a capsule is best for collisions with the world.
      If you were to use a square you'd get stuck on slopes or stairs.
      You can however only use the capsule for collisions in the world, but something else for hit detection, etc.
      Thank you :D

    • @razorgmyt6772
      @razorgmyt6772 Год назад +1

      @@CobraCode oh now i understand, thanks

  • @TruthInFacts
    @TruthInFacts Год назад +1

    Great Video Thank you Very Much!! My First Day on Unreal and this was perfect!

  • @charleskelvinamacanin8197
    @charleskelvinamacanin8197 5 месяцев назад

    my character is always facing right when i play, how to make it so its facing down?

  • @doblajesimberbe1966
    @doblajesimberbe1966 Год назад +2

    This tutorial has everything! Awesome

  • @mzamanist
    @mzamanist 5 месяцев назад +1

    Thank you good sir! This is a very good tutorial

  • @luckylovely7782
    @luckylovely7782 11 месяцев назад +1

    I enjoyed this video,
    And I already bought a course on Udemy.

    • @CobraCode
      @CobraCode  11 месяцев назад

      Awesome, thanks!

  • @OLucasQueJoga
    @OLucasQueJoga 5 месяцев назад

    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!

    • @CobraCode
      @CobraCode  5 месяцев назад +1

      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.

    • @OLucasQueJoga
      @OLucasQueJoga 5 месяцев назад +1

      @@CobraCodethank you so much!! I spent almost 25 minutes looking for it before coming here 😅

  • @Anirudhji2001
    @Anirudhji2001 Год назад +1

    Great video! I was wondering what I would have to do if I wanted to keep the sprite animations to be either left or right, but rather use other inputs to swap perspectives of the sprite and camera together, by 45° at a time?

    • @CobraCode
      @CobraCode  Год назад

      Thank you!
      It really all depends on what you pass as a value for the 'Directionality'.
      You could build your own formula that maybe calculates the angle at which you are looking at your character and create an effect similar to doom for your sprites.
      But there are countless possibilities.

  • @pangln
    @pangln 8 месяцев назад

    Okay but how do i fix diagonal movement in unreal

  • @volfknowsnobounds
    @volfknowsnobounds Год назад +1

    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

    • @CobraCode
      @CobraCode  Год назад

      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.

  • @liamjones4353
    @liamjones4353 Год назад +1

    Hi Cobra, thank you for the video. Is there a way to rotate the camera while you are moving?

    • @CobraCode
      @CobraCode  Год назад +1

      Yeah there definitely is.
      However it'll take some tinkering to also get the movement to change directions depending on where the camera is looking.
      You can definitely do it, but it'll need some trial and error.

  • @psykoplumo4935
    @psykoplumo4935 11 месяцев назад +1

    Hello !! First, big thank for this tutorial.
    I wanna ask, how to fix or change when the player get down near and object, the camera just zoom on the player as much as she can. So its make the character taking the entire screen and I'm not able to see anything else.. Any Advice ?
    Cheers :D

    • @CobraCode
      @CobraCode  11 месяцев назад +1

      Hey, you just have to go to the spring arm and disable 'do collision test'.
      That way the camera will ignore collisions, but this can then lead to other issues such as the camera clipping through walls.
      If this also doesn't work you'll have to come up with custom collisions or some sort of custom system.

    • @psykoplumo4935
      @psykoplumo4935 11 месяцев назад

      Thanks !
      @@CobraCode

  • @AlexWhit92
    @AlexWhit92 Год назад +1

    How did you add that comment box in the event viewer when adding controls at 19:38? Your videos are incredible.

    • @CobraCode
      @CobraCode  Год назад

      Thank you!
      You just have to press 'c'