How To Make A 2.5D Game - Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 235

  • @ThatOneUnityDev
    @ThatOneUnityDev  ปีที่แล้ว +31

    Sub sub sub :p

    • @OmeedNOuhadi
      @OmeedNOuhadi ปีที่แล้ว +2

      Yes, yes, & yes!

    • @A_Random_Scratcher
      @A_Random_Scratcher ปีที่แล้ว +1

      That sub glowed when you told us to subscribe 🤣🤣

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @@A_Random_Scratcher You made sure to click it right? 😉

    • @oilywalrus
      @oilywalrus 10 หลายเดือนก่อน +2

      i absolutely subbed. im an aspiring game dev. ive been making pixel art for a while and i love the 2.5D style. ty for the video

  • @Cottee93
    @Cottee93 ปีที่แล้ว +94

    Bro are u serious? My jaw actually dropped when you imported the house model! (and when you did the sprite shadow). Great job, dude. Subbed.

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +3

      Haha, thanks for watching! Glad you enjoyed! :)

    • @Patryk-H.
      @Patryk-H. 11 หลายเดือนก่อน +1

      This guy deserves a ko-fi!

  • @Wiiddakidd
    @Wiiddakidd 9 หลายเดือนก่อน +14

    Ive been lost trying to start building my idea for a game, this has opened my mind up a bit, love this style. Thank you for making it easy to understand as a concept

    • @ThatOneUnityDev
      @ThatOneUnityDev  9 หลายเดือนก่อน +1

      Thanks for watching! Glad you enjoyed the video! :)

  • @creeperina0154
    @creeperina0154 ปีที่แล้ว +25

    Finally an tutorial that is up to date😂

  • @ikoshura
    @ikoshura ปีที่แล้ว +25

    Great tutorial! Really helped me out in creating my own 2.5D game in Unity. Thank you for sharing your knowledge with us and keep up the good work, I look forward to seeing more tutorials from you in the future!

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Thank you so much! I'm glad you enjoyed the video! :)

  • @cainothecreator8363
    @cainothecreator8363 2 หลายเดือนก่อน +1

    Excellent tutorial. Simple and to the point. Covers all the relevant topics, easy to understand and focusses more on the concept than spending 10 minutes showing you exactly what to write in code one character at a time.

    • @ThatOneUnityDev
      @ThatOneUnityDev  2 หลายเดือนก่อน +1

      Thank you so much! I am glad you enjoyed the video! :)

  • @JohannSiemens85
    @JohannSiemens85 3 หลายเดือนก่อน +1

    As a Full Stack Developer i am always totally stoked when i watch videos like that, because besides the fun it seems to have a solid layer of complexity to it and that's what makes me curious. Thanks for sharing.

    • @ThatOneUnityDev
      @ThatOneUnityDev  3 หลายเดือนก่อน

      Thank you for watching! Glad you enjoyed the video! :)

  • @joshminjoseph5301
    @joshminjoseph5301 11 หลายเดือนก่อน +4

    You are a lifesaver. Please make tutorials on Unpopular topics. You explained this topic wonderfully. I am going to develop a similar-style game. It will be hard since the lighting will probably be messed up (imagine adding a torch). You have earned a Subscriber.

    • @ThatOneUnityDev
      @ThatOneUnityDev  11 หลายเดือนก่อน +1

      Thanks so much! Stay tuned as I do intend on continuing to cover more 'niche' gamedev topics! :)

  •  ปีที่แล้ว +7

    super helpful i couldn't find any other tutorials that went over the sprite movement :)

  • @kevintan5497
    @kevintan5497 6 หลายเดือนก่อน +3

    bro that house extension thing you did is going to save me so much time

    • @ThatOneUnityDev
      @ThatOneUnityDev  6 หลายเดือนก่อน

      Haha, no problem! I'm glad you enjoyed the video! :)

  • @unopinionated1823
    @unopinionated1823 หลายเดือนก่อน +2

    Great and succinct tutorial!

    • @ThatOneUnityDev
      @ThatOneUnityDev  หลายเดือนก่อน +1

      Thank you so much! Glad you enjoyed the video! :)

  • @JimsRobot
    @JimsRobot 2 หลายเดือนก่อน +1

    Yep - I went ahead and bought the course. I'm over half way through and it's very good. It's good value given the amount of material for the price.

    • @ThatOneUnityDev
      @ThatOneUnityDev  2 หลายเดือนก่อน

      Thank you so much for buying the course! I'm glad you're enjoying it! :)

  • @julianelder2582
    @julianelder2582 24 วันที่ผ่านมา +1

    Incredible video mate!

    • @ThatOneUnityDev
      @ThatOneUnityDev  24 วันที่ผ่านมา

      @julianelder2582 Haha, thank you for watching! :)

  • @charlescaton5367
    @charlescaton5367 4 หลายเดือนก่อน +1

    I'm a simple man. I see a troll 2 reference in a unity tutorial, I click subscribe.

    • @ThatOneUnityDev
      @ThatOneUnityDev  4 หลายเดือนก่อน +1

      Haha, thank you! Glad you liked the video! :D

  • @AaronAsherRandall
    @AaronAsherRandall 9 หลายเดือนก่อน +5

    As others have mentioned, what you did in Blender is like the best hack I’ve seen in game dev! Wow! I seriously don’t understand Blender. Any tutorial on there potentially?

    • @ThatOneUnityDev
      @ThatOneUnityDev  9 หลายเดือนก่อน +1

      You're in luck! I actually have a tutorial on this channel, on how to make this exact house in blender! :)

  • @jugibur2117
    @jugibur2117 4 วันที่ผ่านมา +1

    Very facinating, thanks!

  • @SheeshMaster64
    @SheeshMaster64 5 วันที่ผ่านมา +1

    this is gold info

    • @ThatOneUnityDev
      @ThatOneUnityDev  4 วันที่ผ่านมา

      Thank you so much! I'm glad you enjoyed the video! :)

  • @CriadorDeLindosJogos
    @CriadorDeLindosJogos 3 หลายเดือนก่อน +1

    Very good! Thanks for the video! The result was fantastic!

    • @ThatOneUnityDev
      @ThatOneUnityDev  3 หลายเดือนก่อน +1

      @@CriadorDeLindosJogos Thanks for watching! I'm glad you enjoyed it! :)

  • @migcreatesgames2622
    @migcreatesgames2622 ปีที่แล้ว +4

    Nice one! I like the idea of using a sphere to cast the players shadow. For Oh S**T Boulder I did a shader that cast the shadow, but I didn't think about doing a mesh collider

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Haha, thanks for watching! Sometimes us developers can overcomplicate the most simplest things.

  • @adamalexander1234
    @adamalexander1234 ปีที่แล้ว +1

    Love it! Keep making in this style!

  • @Carlos-Garcia47
    @Carlos-Garcia47 ปีที่แล้ว +1

    Thanks for the tutorial, always wanted to make a game in this style. gonna set up the project now and begin tomorrow

  • @hawkgamedev
    @hawkgamedev ปีที่แล้ว +1

    Great tutorial! If I recall correctly you can edit params in runtime in the inspector without having to stop the game and edit again.

  • @gnowgnow2559
    @gnowgnow2559 7 หลายเดือนก่อน +1

    I went to see how to make 2.5 D, in the end I realized that I already knew that, but I looked at the principle of creating pixel models in Blender, thank you)

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 หลายเดือนก่อน

      Yeah, it is easier than most people think! But if you have no starting point, it can make things take longer/more difficult. Thank you for watching! I also have a full video on making pixel art models in blender! :)

  • @KwBeee
    @KwBeee ปีที่แล้ว +1

    Thanks! Coming from unreal and was struggling. Helped a ton

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Thanks for watching! Glad I could help! :)

  • @mehmeh8883
    @mehmeh8883 25 วันที่ผ่านมา +1

    Watched this last year watching it again now lol, this time gonna use it

    • @ThatOneUnityDev
      @ThatOneUnityDev  25 วันที่ผ่านมา

      Haha, thanks for watching!

  • @Mikerrushhd
    @Mikerrushhd ปีที่แล้ว +4

    For the alogrythm bro, nice video

  • @George-hi6cy
    @George-hi6cy 2 หลายเดือนก่อน +1

    Thanks for the information, and the laughs

  • @kuroakevizago
    @kuroakevizago 4 หลายเดือนก่อน +1

    Never thought about the Character Shadow part tho, it's a great trick to deceive 2D object for having a shadow

    • @ThatOneUnityDev
      @ThatOneUnityDev  4 หลายเดือนก่อน

      Haha, thanks for watching! I'm glad you think so too! :)

  • @MoosemeIon
    @MoosemeIon ปีที่แล้ว +1

    Im making a game that has graphics similar to Gen 5 pokemon, and this is a big help! Thank you, definitely will be coming back once im done learing unity!

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Thanks for watching! Glad you enjoyed the video! :)

    • @pratiikjagdale
      @pratiikjagdale ปีที่แล้ว

      I would die to play your version of the game, keep us posted.

    • @MoosemeIon
      @MoosemeIon 9 หลายเดือนก่อน

      ​@pratiikjagdale Yes I definitely will! It's a long way out, but I am almost done with the art work to it, so music/more coding is next!

  • @marko1701
    @marko1701 ปีที่แล้ว +2

    aaah exactly what i need. thank you!

  • @Vincart
    @Vincart 2 หลายเดือนก่อน +1

    Hey very cool tutorial, thanks!
    Unfortunately I have a problem with the clipping function.
    My character can't even climb small hills. Sometimes he just gets stuck. And when I get to the top of something bigger, I sink back into the ground. He only makes it up very small hills. Is this intentional or should it actually also work on larger hills (that aren't really steep)?

    • @ThatOneUnityDev
      @ThatOneUnityDev  2 หลายเดือนก่อน

      Something I noticed after I released the video, is that I actually went with rigidbody style movement. With this being the case, we could potentially just drop the entire raycast/snap feature altogether, as the rigidbody would take care of all the movement.
      With that being said, regardless of what method you use, you will run into the issue of slopes. Don't worry, you're not alone. Slopes are actually a big talking point in gamedev, with various methods and approaches on how to deal with them.
      The best 'bang for your buck' is to probably remove the raycast/snap feature as mentioned earlier, and apply a physics material to your player that has good friction. This should allow for decent inclines, and be more than enough for most cases. But if your still having issues, or are interested, it might make more sense to look into proper slope detection.

  • @Guille-mz7xf
    @Guille-mz7xf ปีที่แล้ว +1

    Monetize this man

  • @ralfocamargocoba5313
    @ralfocamargocoba5313 6 หลายเดือนก่อน +1

    Must admit. that was a well earned like and subscribe.

    • @ThatOneUnityDev
      @ThatOneUnityDev  6 หลายเดือนก่อน

      Thank you so much! I'm glad you enjoyed the video! 😀

  • @OhCappio
    @OhCappio 25 วันที่ผ่านมา +1

    Hi!! I have a question, which condition did u use to change between animations? I created all the animations but none of the conditions that i tried to use worked. Help me pls ;)

    • @ThatOneUnityDev
      @ThatOneUnityDev  24 วันที่ผ่านมา +1

      It's no different than if you were to do it regularly. In the animator I created a walking bool parameter, and changed it in the player controller based on input. Hope this helps! 🙏

  • @HexaBlade007
    @HexaBlade007 5 หลายเดือนก่อน +1

    Definitely going to use this! Me and some friends have been trying to make a indie rpg game in the style of a Mario & Luigi game, and we had no idea how to deal with the sprites, but this just answered our question! But it does spawn another. If we wanted to have the sprite change based on if its going forwards or backwards, or even at a 45 degree angle, how would we do that? is there some documentation you could refer us to to better understand this?

    • @ThatOneUnityDev
      @ThatOneUnityDev  5 หลายเดือนก่อน

      Hi there! Thanks for watching! :)
      Unfortunately there isn't anywhere I can point you specifically. But off the top of my head, if you aren't changing the camera angle, why not just change the sprite based on input? So for example, if holding w then face backwards. :)

  • @retrogamesshow
    @retrogamesshow 2 หลายเดือนก่อน +1

    Hi, can I use 2d images as level background for 2.5d platformer game

    • @ThatOneUnityDev
      @ThatOneUnityDev  2 หลายเดือนก่อน

      @@retrogamesshow You can use anything you like! :)

  • @ChannelIsNotInUse
    @ChannelIsNotInUse 3 หลายเดือนก่อน +1

    Great tutorial! I didn't really think of using Terrains for a 2.5D type game, but yeah it does make good sense.
    One question I do have whilst making my own game, is how to make a good skybox. Where did you get the skybox from? Do you have a link or something?

    • @ThatOneUnityDev
      @ThatOneUnityDev  3 หลายเดือนก่อน

      Hi there, thanks for watching! :D
      In this specific video, I actually didn't even use a skybox, I just changed the camera's background to solid color, and plopped in some star sprites that billboard the camera!
      With that being said, I have made skyboxes before in photoshop and recommend following this tutorial: th-cam.com/video/XZmr-XYRw3w/w-d-xo.html

  • @BossKeegEdits
    @BossKeegEdits ปีที่แล้ว +1

    Amazing video very interesting to watch and have to make a project with this in mind

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Thanks for watching! Glad you enjoyed it! :)

  • @RetroSam89
    @RetroSam89 5 หลายเดือนก่อน +1

    What about lighting and shadows on the 2D sprite? Will lights and shadows show up on the 2D sprite?

    • @ThatOneUnityDev
      @ThatOneUnityDev  5 หลายเดือนก่อน

      No, BUT you can make a shader that will do all of that for you! I recommend tarodev's tutorial for that! :)

  • @justyourfellowfrog
    @justyourfellowfrog 4 หลายเดือนก่อน +1

    i would love to know HOW you dragged your sprite into the 3d environment. for some reason it just doesn't work with me????????????????????????

    • @ThatOneUnityDev
      @ThatOneUnityDev  4 หลายเดือนก่อน

      Thanks for checking out the video! Make sure you check your import settings. It's possible your sprite is set to a texture, or something else funky may have happened. Hope this helps! :)

  • @Shadow-gc1em
    @Shadow-gc1em ปีที่แล้ว +1

    Thanks for the video, help me so much

  • @severyansilver8207
    @severyansilver8207 10 หลายเดือนก่อน

    This is awesome, thank you!

    • @ThatOneUnityDev
      @ThatOneUnityDev  10 หลายเดือนก่อน +1

      Thanks for watching! :)

  • @noprobliem23
    @noprobliem23 ปีที่แล้ว +1

    heyyy quick question thou, i tried your code etc, and why does my character passes through the terrain ? i mean when it walks, it passes through the bumps that ive made instead of walking on top of them

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Did you make sure to properly set the ground distance, and terrain layer in the inspector?

    • @noprobliem23
      @noprobliem23 ปีที่แล้ว

      @@ThatOneUnityDev yeahh thank you it worked now!

  • @texmex810
    @texmex810 ปีที่แล้ว

    The earliest game with 2.5D I can remember is Runescape classic back in 2001

  • @juni0r427
    @juni0r427 11 ชั่วโมงที่ผ่านมา

    If you wanted to add jumping, how would you do that?

  • @AqueleDeQuemNaoFalamos
    @AqueleDeQuemNaoFalamos ปีที่แล้ว +1

    Great tutorial.

  • @geremiagalaxy8182
    @geremiagalaxy8182 4 หลายเดือนก่อน +1

    request. If I know how to draw but I don't know how to program, is there a profession in the world of video games? I've always wanted to make a game like tombi/abe

    • @ThatOneUnityDev
      @ThatOneUnityDev  4 หลายเดือนก่อน

      Thanks for the comment! So typically when it comes to game dev, you specialize in 1 specific aspect; whether it be art, programming, or design. These categories have a whole bunch of sub-categories inside of them. So for example, you said you know how to draw. Well, you might be a good fit for some of the artist jobs, like concept art, 2D asset creation, 2D animation, texturing, or even designing levels in 2D.
      In a large company, like blizzard, all of those examples are full-time jobs. Although, getting one those jobs can be a little tricky, as you need to be VERY proficient in that specific job-type. On the other hand, you have indie companies. These companies are usually more lax about proficiency, but are comprised of 1-20 people. But just because there are less employees, doesn't mean those jobs don't need to be done. It's just the amount of jobs per person increases. So 1 artist might be tackling several of those previous job examples, or even all of them. In this case, you need to have 'good' proficiency for most things in the art pipeline.
      So to answer your question, YES you can definitely build a career in game dev on just art alone. You just have to narrow in on what specific job you really like, and build a solid proficiency in it to compete with other job applicants. BUT given the second part of your comment, if you intend on making a game on your own, you WILL need to learn all things art, and hire a programmer, OR learn all of it on your own. Be prepared though, because not only are there plenty of sub categories for art, but for all 3 (art, programming, design).

  • @cristopherjg
    @cristopherjg ปีที่แล้ว

    nice lighting idea!

  • @blackskull
    @blackskull 7 หลายเดือนก่อน

    Hey! Im trying to do something similar and was wondering how you made your 2d tilemap tiles into a terrain texture? I'm trying to use a grass texture i have to layer the floor of the terrain but cant as it shows up as a tile

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 หลายเดือนก่อน

      You can't use a 2d tile map as a texture. In seperate drawing software, such as photoshop, you will need to cut out your tile, and save it separately as a .png. Then when you import it, make sure it is set as a texture in your import settings! You can then use it on your terrain, or even make a material and use on a 3D model. :)

    • @blackskull
      @blackskull 7 หลายเดือนก่อน +1

      @@ThatOneUnityDev Makes so much sense now. Thank you so much! Just enrolled in the course as well. I’m excited to follow along

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 หลายเดือนก่อน

      @@blackskull Thank you so much! Hope you enjoy it!

  • @enriquedelima396
    @enriquedelima396 9 หลายเดือนก่อน +1

    Grear tutorial man! Could you help me out though, whenever I add a collider to my character it goes up endlessly on the y-axis instead of only by the change in hight of the terrain

    • @ThatOneUnityDev
      @ThatOneUnityDev  9 หลายเดือนก่อน

      Thanks for watching, glad you enjoyed it! I think your raycast is interacting with your player still, make sure you set the layers up correctly!

    • @enriquedelima396
      @enriquedelima396 9 หลายเดือนก่อน +1

      ​@@ThatOneUnityDevThank you! that was indeed it. I set thr character as terrainLayer 😂

  • @nomadic-Jambo
    @nomadic-Jambo 7 วันที่ผ่านมา +1

    哥们这是真管用

  • @karolpadiasek5461
    @karolpadiasek5461 ปีที่แล้ว

    great stuff! 👏👏👏

  • @CC_-pn2og
    @CC_-pn2og ปีที่แล้ว

    when you gave the building some *THICKNESS* how did you get the middle to fill? I've researched and cant find any way to replicate that.

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      I actually have a tutorial on my channel on how to make the house, as well as another (better) method! :)

    • @CC_-pn2og
      @CC_-pn2og ปีที่แล้ว

      @@ThatOneUnityDev thx. I will look there then 👍

  • @RedaHaskouri
    @RedaHaskouri ปีที่แล้ว +1

    hi sir! thanks for all your videos. i have a question if you can help me!
    i want to animate cenimachine when touch a trigger. ( i have multi triggers, and i want to zoom in and zoom out for each specify trigger )
    in 2D game.
    sorry for my english. if you can help me with a tutorial sir

  • @johnemersonbacarra2583
    @johnemersonbacarra2583 8 หลายเดือนก่อน +1

    I want to learn this style. I'm really bad at creating my assets

    • @ThatOneUnityDev
      @ThatOneUnityDev  8 หลายเดือนก่อน

      I recently posted an announcement about a 2.5D course I created! If you take the course, you will gain access to all the assets you need! :)

  • @daypizza2303
    @daypizza2303 8 วันที่ผ่านมา +1

    Why my player can't move forward and backwards

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 วันที่ผ่านมา

      Without seeing your project, or additional information. There could be a bunch of reasons for this. i'll list a few of the common problems that could arise.
      You might be missing a rigidbody on your player. You may not have set variable values in the inspector. Your ground may not be on the correct layer. Your input system might have different configured keys. Mistyping in the code.
      If none of those solve the problem, and there is an error in your console, that would 100% help solve the issue if you paste it bellow. Cheers! :)

  • @glockjawsp
    @glockjawsp ปีที่แล้ว

    So how would you branch out and be able to explore forwards and backwards? (I.e like an rpg / dungeon crawler that isn't just side scrolling with minimum front and back, but full exploration) .. same concepts or is there another trick

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      It's already setup to do just that! This specific demo scene doesn't demonstrate it very well, but the additional videos I made do. They even have verticality.

    • @glockjawsp
      @glockjawsp ปีที่แล้ว

      @@ThatOneUnityDev Awesome thanks. I'm trying to create a first game and I really want to leap for the 2.5D aspect, but I am weighing 3D and 2D as well. Seems as far as material out there there is alot more for 2D and 3D. I appreciate you!

  • @HeyItsJamethy
    @HeyItsJamethy 6 หลายเดือนก่อน +2

    your tutorials are the best thank you for blessing me with your knowledge 🫶

    • @ThatOneUnityDev
      @ThatOneUnityDev  6 หลายเดือนก่อน +1

      Haha, thank you for watching, and the kind words! I appreciate you! :)

  • @Gomace
    @Gomace ปีที่แล้ว

    I just want to mention that there's an option in unity called "GetAxisRaw" which has a much higher response feedback when it comes to Axis coding. I have no idea why that is not the default for GetAxis, but hey, that is what it is.

    • @maniacone4499
      @maniacone4499 ปีที่แล้ว

      As far as i know, and correct me if i am wrong:
      GetAxi is normalized and does some extra calculation behind the scene while GetAxisRaw does not and gives you the input-values unfiltered.
      maybe that's why its more responsive.

  • @raymix9603
    @raymix9603 ปีที่แล้ว

    Hello I’m having trouble and would appreciate the help, I’m trying to do the animations using if speed is greater than x play the walking animation or if speed is less than x play the idle animation but don’t know how to change the code to alter the speed, any tips?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      So what I would do, is create a float speed parameter in your animator. Then in the code, you would get your animator component and set the speed parameter bellow the movement, to be the x variable. So anim.SetFloat("speed",x);
      Your animator transitions would be going to walk if speed is not equal to 0, and returning to idle if it is.
      The x variable is simply the players input. Which is already setup to be either -1 for left, 1 for right, and 0 for no input at all.

  • @Shivam-hf7nx
    @Shivam-hf7nx 6 หลายเดือนก่อน +2

    I am a beginner and i want to start my gamedev journey so should i start by making 2d games or 3d games ??
    Or should i first learn c # till advanced
    By the way your vedio helped a lot

    • @ThatOneUnityDev
      @ThatOneUnityDev  6 หลายเดือนก่อน +1

      Thanks for watching! Glad you enjoyed! My suggestion is to do whatever you're most interested in wanting to create! Both 2D and 3D have their own sets of learning curves and problems to overcome. There is no 'best path'. So long as you're shooting towards your end goal, and having fun along the way, you're most likely going to be successful. 👍

    • @Shivam-hf7nx
      @Shivam-hf7nx 6 หลายเดือนก่อน +1

      Thanks a lot your comment boosted my confidence I didn't expect that you will give reply to my comment but literally your every word motivated me
      I will give my best
      You are best youtuber I got ever
      Thanks a lot 😊😊😊😊

  • @TiaNeedsSleep
    @TiaNeedsSleep ปีที่แล้ว

    it kept telling me that hit.collider (line 28) cannot be referenced and is read only
    does anyone know how to fix it?

  • @ViralOrangeSlice
    @ViralOrangeSlice 8 หลายเดือนก่อน

    My unity says, 'Mathf does not contain a definition for infinity' and my player controller script doesnt have speed, height, etc. options. Do you know why?

    • @ThatOneUnityDev
      @ThatOneUnityDev  8 หลายเดือนก่อน

      Thanks for watching! Very strange. I'm assuming the reason you don't have speed, height, etc, is because the Mathf error. Upon looking into it, the only explanation I have is maybe you didn't spell it correctly! It needs to be exactly " Mathf.Infinity ". Lmk if that worked for you! :)

  • @its_nuked
    @its_nuked 11 หลายเดือนก่อน

    Hello. I'm still havinga bit of trouble understanding how oyu just.. popped in your sprites into unity?
    Dragging images in myself just puts them on game objects as textures. Am i missing something?

    • @ThatOneUnityDev
      @ThatOneUnityDev  11 หลายเดือนก่อน +1

      In 3D URP, unity defaults all sprites to textures. All you have to do, is make sure you have the sprite package installed, and in your sprites import settings, it's actually set to sprite.

  • @mikazukipeach
    @mikazukipeach ปีที่แล้ว

    Hi I need some help how to make animation walk when Player is walk? Thank you!

  • @logandisbrow1668
    @logandisbrow1668 ปีที่แล้ว

    Great tutorial, but cinemachine just breaks everytime I try to add the 2D camera, i.e. the camera will no longer move and the player is stuck in place in the game view but still moves in the scene view. Any theories?
    Thanks!

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Hmmm, that's really odd. Nothing I can think of off the top of my head. If you can't solve the issue, I would advise to create a custom camera follow script; or even easier, just position your camera how you like it, and make the camera a child of the player. :)

  • @iloveadventuretime1
    @iloveadventuretime1 4 หลายเดือนก่อน

    What engine is used for this? Also could you give me a list of everything I need? I wanna make an rpg and the story I have? I just gotta do it. I'll start with a 2.5d and let the world chew on it while I work on a completely 3d version.

  • @shahzaybzain163
    @shahzaybzain163 หลายเดือนก่อน +1

    This video is so good, omg!!!!!!! :D :D :D

    • @ThatOneUnityDev
      @ThatOneUnityDev  หลายเดือนก่อน +1

      @shahzaybzain163 Haha, can't believe you noticed! 🤣

    • @shahzaybzain163
      @shahzaybzain163 หลายเดือนก่อน

      @@ThatOneUnityDev Looks like I'm the only one who noticed lol. What's your LinkedIn btw?

  • @emmanuelsan1508
    @emmanuelsan1508 ปีที่แล้ว

    How do I make it so my idly animation switch to my walk animation, please help!

  • @TwentyW-e7e
    @TwentyW-e7e 9 หลายเดือนก่อน

    Thanks for the video! Any ideas on how to make my player fall normally, because at the moment, he just slowly "slides" down?

  • @salmon_vegetable_plate
    @salmon_vegetable_plate 11 หลายเดือนก่อน

    I am currently working on a 2.5d project like this video and struggling with enemy and combat in this kind of 2.5d environment. I try to use the nav mesh agent be my enemy Ai but it turns out to be kind of bad and I don’t know what I can adjust. Even after searching online there seems to be little information about this kind of enemy AI. Can you give me some advice or hint?

    • @ThatOneUnityDev
      @ThatOneUnityDev  11 หลายเดือนก่อน

      You are definitely on the right track! For 3D typically a navmesh is used to define 'walk-able' areas, and have waypoints for the agent to go to.
      Creating complex AI is actually incredibly difficult. My suggestion is to try and create a basic 'idle', 'chase' AI. So your enemy is idle by default, until something happens (he sees you, you get in a radius, etc.), then make it chase you for a certain amount of time, before going back to an idle state.
      If it seems your Navmesh isn't cooperating with your terrain, you could always be a little sneaky, and use some basic primitives to get the rough layout of the map, turn them invisible, and then make the navmesh based on that instead.

    • @salmon_vegetable_plate
      @salmon_vegetable_plate 11 หลายเดือนก่อน

      @ThatOneUnityDev ok, but what if I have multiple slime chasing and want to attack me? Because it is 2.5D, and the enemy is using a navmesh agent to find the nearest path to the player. What if the enemy goes behind or in front of the player but instead the right or left side of the player . I have no idea how to make this kind of non range attack look good.

    • @ThatOneUnityDev
      @ThatOneUnityDev  11 หลายเดือนก่อน

      @@salmon_vegetable_plate Those are very good questions. Usually something like that would be handled via code. You would tell the agent, he can't go in front or behind the player. Which is a lot easier said then done.
      A sneaky way off the top of my head, that requires no code, is to add dynamic obstacles as a child of the player. Again, I haven't tried it yet, but it might be a painless solution to your issue!
      As a last resort, you might also want to look into A* pathfinding, and ditch the navmesh all together. Either way, i'm sure you can come up with a solution! Hopefully I helped! Let me know how it goes!

    • @salmon_vegetable_plate
      @salmon_vegetable_plate 11 หลายเดือนก่อน

      @ThatOneUnityDev Thank you. I will try the dynamic obstacles and see if that works!

    • @salmon_vegetable_plate
      @salmon_vegetable_plate 11 หลายเดือนก่อน

      ​@ThatOneUnityDev So after I try to add two child objects with navmesh obstacles at the front and back of my player ,there is a problem that I can push the enemy with these obstacles while I am moving.

  • @genjithesheikah1501
    @genjithesheikah1501 3 หลายเดือนก่อน +1

    Hey! do you think you could do a quick tutorial on the blender model?

    • @ThatOneUnityDev
      @ThatOneUnityDev  3 หลายเดือนก่อน

      @genjithesheikah1501 you're in luck! I already have a tutorial on this channel on how to make this exact model! :)

    • @genjithesheikah1501
      @genjithesheikah1501 3 หลายเดือนก่อน +1

      @@ThatOneUnityDev awesome say less! I’ve been having a hard time figuring out blender so I appreciate it!!

  • @varanops1619
    @varanops1619 3 หลายเดือนก่อน

    Hi ! I'm a ue5 user do u know where can I find a similar tutorial for ue5 ??

  • @nedkins
    @nedkins ปีที่แล้ว

    Where did you get the original assets for the player, the ground etc. I know you made the house but what about everything else?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Sorry if I wasn't clear in the video. I made all of the assets.

    • @nedkins
      @nedkins ปีที่แล้ว

      @@ThatOneUnityDev Oh that’s my bad. Well let me just say then that your pixel characters and animations are amazing!

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @@nedkins Haha, Thanks! :)

  • @dinisb
    @dinisb ปีที่แล้ว

    Do you know how one would make that when the camera moves, the character changes sprites corresponding to his position and the position of the camera?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      So basically a 3rd person controller, but with sprites? Off the top of my head, I would probably do some sort of angle maths from the camera's forward to the player's, and use ranges to switch based on that. There might be a better/easier way though.

  • @salmon_vegetable_plate
    @salmon_vegetable_plate ปีที่แล้ว

    Amazing video but if I want to add jump with the raycast movement you wrote in the video. In this case how should I make it?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Because I opted for rigidbody movement, you can just ignore the raycast, and everything should work as intended. Then just use an AddForce function on input (as you normally would) to handle the jump.

    • @salmon_vegetable_plate
      @salmon_vegetable_plate ปีที่แล้ว

      @ThatOneUnityDev Thanks,but if I want clean terrain movement on a slope like you did in the video, how should I do it?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @@salmon_vegetable_plate It will still work in a similar way because we are using rigidbodies. The gravity should keep your player on the slope. Alternatively, if you for whatever reason want to keep the raycast, you can create a bool, and stop the snapping when you hit the jump input, and re-enable it when you touch the ground.

    • @salmon_vegetable_plate
      @salmon_vegetable_plate ปีที่แล้ว

      @ThatOneUnityDev ok,I will try to use the boolean. Thank you for replying me😀

  • @jeremiahmauga1801
    @jeremiahmauga1801 ปีที่แล้ว

    Could you go more into depth with how you converted that house into a 3d model?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Yeah, for sure! I will make a video about it! :)

  • @jamesaldridge1128
    @jamesaldridge1128 ปีที่แล้ว

    Great video. Do you think this would be the right approach to take for something like castle crashers?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      For sure, you could make a game like castle crashers with this method!

  • @romatrasporti2000
    @romatrasporti2000 ปีที่แล้ว

    (sorry for bad english) hi, can you do a tutorial for create 3d object with 2d image? and another question, i try to do something in blender like you do in a video , but i have a mess , when i put a value in thickness, the house is not of the color of your

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Hmm, that's interesting. It's hard to say what might've happened. It should be just as easy as I showed in the video.
      Hopefully, you can fix it by looking at other examples of how to use the knife tool in blender. If you still get stuck, you could always join the discord, and we could help you out!

  • @DekuDeluxe
    @DekuDeluxe ปีที่แล้ว

    Could you possibly make a tutorial on how you were able to make that house sprite 3D in Blender? Thank you so much brother.

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      What a coincidence! I just finished uploading and scheduling that exact video for 12.5hrs from now! :)

  • @AB_VoiD
    @AB_VoiD 7 หลายเดือนก่อน

    im a little late but what is the name of the first game , you showed to explain ?( the part where the u rotate)

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 หลายเดือนก่อน

      Thanks for watching! That was just the project I was using for my UI videos! 😂

    • @Antonwalnuts
      @Antonwalnuts 7 หลายเดือนก่อน

      @@ThatOneUnityDevi could’ve sworn there was a game like it somewhere on the playstation.. like seriously i’m pretty sure i saw a game exactly like it i even thought of some level designs for the game a couple days ago so i know it existed

    • @ThatOneUnityDev
      @ThatOneUnityDev  7 หลายเดือนก่อน

      @@Antonwalnuts Oh, my bad. I was confused, the name of that game is called fez

  • @Magician3388
    @Magician3388 ปีที่แล้ว

    Thank you for the tutorial, what is the resolution of the sprites you are using? I was having trouble getting sprites to look less pixelated.

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Thanks for watching! I am using 32x32 for my sprites. Try changing the import settings to no compression, and use point no filter.

  • @Shadow-gc1em
    @Shadow-gc1em ปีที่แล้ว

    How u model this litle house? for me its to complex, shoud you make a tutorial :(

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      At around the 4:35 mark I go over how I made it! I know I kinda rushed that part, but it's just basic 3D modeling. I will have to make a more detailed tutorial in the future! :)

  • @pugobits5088
    @pugobits5088 3 หลายเดือนก่อน +1

    1:25 srs how tf did you do that

    • @ThatOneUnityDev
      @ThatOneUnityDev  3 หลายเดือนก่อน +1

      I literally just dragged it in. If you are having issues, make sure that you have the sprite packages installed, and in the sprites import settings, make sure it is selected 2D sprite, and not material! Thanks for watching! Hopefully, this helps! 🙏

    • @pugobits5088
      @pugobits5088 3 หลายเดือนก่อน

      @@ThatOneUnityDev nvm I realize you were using 2d and not 3d

  • @salmon_vegetable_plate
    @salmon_vegetable_plate 11 หลายเดือนก่อน

    Did you paint the grass with the terrain tool or place it manually?

    • @ThatOneUnityDev
      @ThatOneUnityDev  11 หลายเดือนก่อน +1

      Thanks for checking out the video! I believe in this example I placed the long grass manually. In my other video, I used the terrain tool. :)

  • @themaydayman
    @themaydayman ปีที่แล้ว

    nice and concise :D

  • @NayyarAbbas-sh1vw
    @NayyarAbbas-sh1vw ปีที่แล้ว +1

    please dont stop posting

  • @PipkoFanfare
    @PipkoFanfare ปีที่แล้ว

    How did you set up the pixel textured terrain? Is it an existing asset or something you made?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Hi! Thanks for watching! :) ... The texture was actually just a seamless pixel art grass tile I found on opengameart.org. Although I did make the dirt tile with a simple pixel art program. It works the same as any other texture you might paint on the terrain.

  • @gabrielheroux982
    @gabrielheroux982 ปีที่แล้ว

    amazing video, inspired me to make a little prototype.
    i followed your code and got it all working, but i was wondering how you would make the player jump as well?
    new to unity, thanks :)

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      Because I opted for rigidbody movement, you should be able to remove the raycast that is snapping the player to the ground, and use something like the 'AddForce' function to make the player jump!

    • @gabrielheroux982
      @gabrielheroux982 ปีที่แล้ว

      thank you!! works very well except that my player jumps infinitely. any idea how to fix that? @@ThatOneUnityDev

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @gabrielheroux982 LOL, define "jumps infinitely." At this point, your character is basically just a normal 3rd person controller, minus rotations. Are you using the same practice as a regular 3D jump? For context, you can check out my latest video on how I handle a 2D jump, and then apply the same foundations but in 3D.
      -Using a Physics.Raycast.
      -Determining if your on the ground + timer.
      -Applying the force.
      -Reset jumps when landed.

  • @eleonoracarta1333
    @eleonoracarta1333 ปีที่แล้ว

    HI! I'm new to Unity so I wanted to ask if it was possible to make the character move only horizontally and not in depth. my idea is to make a side scroller game and just simulate the depth of buildings etc. Sorry for the “stupid” question 😅

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +3

      Haha, thanks for watching! You can easily do that by removing the "float y = ...." line and on the line below it, replace the y with a 0. :)

  • @SorrowDevTv
    @SorrowDevTv 10 หลายเดือนก่อน +1

    This video is so good omg!!!!! :D :D :D

    • @ThatOneUnityDev
      @ThatOneUnityDev  10 หลายเดือนก่อน +1

      LOL. Thanks for watching! :)

  • @Moaz-Aljayd
    @Moaz-Aljayd 9 หลายเดือนก่อน +1

    Thank u pro

  • @pecenkapecen4992
    @pecenkapecen4992 ปีที่แล้ว

    you are so cool! thank you!!

  • @ramenflavors
    @ramenflavors ปีที่แล้ว

    Do i have to use 3D (URP) or could I just do 2D and somehow make it into 3D?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว +1

      You could do that, or you could even use no rp. BUT, I highly suggest not starting in 2D if you can help it. If your making something similar to what I did in the video, the only sprites in the scene are essentially the player/npc sprites. There would be 0 benefit of using a project configured for 2D, as this is basically a 3D game.

  • @KalponicGames
    @KalponicGames ปีที่แล้ว

    Isn't it better to use 3D characters on 2D world so characters can have easier time changing clothes or weapons? Also modular In rigs u can reuse.

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      While 3D characters in a 2D world have various benefits, it can also have many drawbacks as well. Nevertheless, It would create a very different effect than what you're seeing in this video.

    • @KalponicGames
      @KalponicGames ปีที่แล้ว

      @@ThatOneUnityDev would you do a video on that topic? I find making low poly characters is easier than making sprite sheets. So just trying to make things with what I am good with. It's quite a lonely road.

  • @lazukoanimates9610
    @lazukoanimates9610 ปีที่แล้ว

    that's so cool

  • @slufrgsfdsvjg5396
    @slufrgsfdsvjg5396 ปีที่แล้ว

    I can’t move my character at all, do you know what the problem might be?

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      It could be a number of things. Do you have a rigidboy2d on it? Perhaps your terrain collider, and player collider have you stuck in the ground? Check your rigidbody2d constraints, and make sure they match.

    • @slufrgsfdsvjg5396
      @slufrgsfdsvjg5396 ปีที่แล้ว

      @@ThatOneUnityDev I do have two console errors that I don’t know how to fix which might be the problem
      “You are trying to read input using the unityEngine.input class, but you have switched active input handling to input system package in player settings. player controller.Update () (at asset/ player controller.cs:36)”

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @Slufrg Sfdsvjg oh okay. So my script uses the old input system, but you are using the new input system. You could either update my code to the new system, or revert back to the old one. Which is in project settings-> player->active input settings

    • @slufrgsfdsvjg5396
      @slufrgsfdsvjg5396 ปีที่แล้ว +1

      @@ThatOneUnityDev thank you I was finally able to get it to work, you’re very kind I appreciate the help

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      @Slufrg Sfdsvjg No worries! Glad to help! :)

  • @marc13bautista
    @marc13bautista ปีที่แล้ว

    Nice tutorial. Can you remake this for using Unreal Engine / Godot / Gdevelop? I don't wanna use Unity because of the distrust and infamy it's gained recently.

  • @Shadow-lo4dt
    @Shadow-lo4dt 5 หลายเดือนก่อน

    what is the name of the first game? pls

  • @actsolator2261
    @actsolator2261 ปีที่แล้ว

    Hi, thanks for this awesome tutorial! I am a newbie in game dev, right now I have a problem with the script(or maybe not), the problem is when I start to play the game my character can do a flip when I press A/D which means it simulates the movement on right & left, but it stuck on the same position and just can't move🤒, do you have any ideas what may make this happen? Thankyou!!! update: just realized I need to disable the Freeze Position from Player>Rigidbody LOL

    • @ThatOneUnityDev
      @ThatOneUnityDev  ปีที่แล้ว

      Haha, no worries! Glad you got it all sorted out! :)

    • @davidpak271
      @davidpak271 ปีที่แล้ว

      I'm having the same issue and I'm using the constraints in Rigidbody but it's not working, what was the solution? Update: Nevermind I got it, I'm trying to combine this tutorial with CodeMonkeys which uses transform instead, so i ended up locking the rotation in update, not sure if this is resource intensive though.