RTS Game Tutorial | Unity | Episode 1 - Basic Unit Movement

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

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

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

    I just wanted to tell you that you're awesome. I'm French and I understand English quite well, and your tutorial series are great.

  • @ai-mashups
    @ai-mashups 10 месяцев назад +4

    THIS IS SO COOL. For anyone with an Apple + Trackpad, I changed the ButtonDown(x) from (1) to (0) and now the "left click" (single click) is working for the trackpad. Thanks again for doing this!

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

    I love survival games and RTS. I find them very addictive. Thanks for adding the camera to your videos, they've come alive.

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

    Thank you SO MUCH for doing this. I have been trying to learn Unity by doing an RTS game, and all of the tutorials were older made before many changes like NavMesh, driving me CRAZY. I am so happy you're doing this. And it looks like your last series had like 30 episodes. Fantastic.

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

      I also really appreciated the simple, plain language descriptions, but then speeding up the video for coding when appropriate. Additionally, I all the things that you mentioned would be covered in other episodes, are things I personally could totally use! Again, I am SO THRILLED that this series is happening.

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

      Oh, and my last compliment is that I'm glad you're using URP. I am interested in potentially extending my game to VR one day, so I appreciate this.

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

    Omg, I am so excited to follow this tutorial 🎉😮 as I said in a previous video, I loved this genre when I was a kid (Empire Earth, Imperium, Total Annihilation). Thanks for all you share in this channel!!

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

    Thank you for the new series on RTS, just like the survival one i can already tell this will be one of the most beneficial learning experiences on YT for unity, i know the survival series is the main one but hopefully you can delve as deeper into RTS as your time might allow you.

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

    Omg, another fantastic series coming out. Thank you for making these videos!

  • @KamaradClyph
    @KamaradClyph 11 месяцев назад +4

    This is really good and simple to understand. Can’t wait for the next episodes. Ty

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

    Looking forward for the next tutorials. Straight to the point and very good explanations. 👌

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

    Thank you for this awesome tutorial!

    • @Mikes-Code
      @Mikes-Code  5 месяцев назад

      Thank you for the support

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

    Finally ❤ its really hard to find a good RTS tutorial.

  • @adem_dev
    @adem_dev 11 месяцев назад +4

    Thanks Mike for your great tutorials. Keep working on the survival game 🎮❤

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

    Awsome! keep releasing them so we can make progress :)

  • @rodmaker3768
    @rodmaker3768 11 месяцев назад +4

    Let's go Mike! Thanks for another series

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

    Was having a lot of trouble getting rubber to meet the road until I found this. Thank you!

  • @컴퓨터-h4w
    @컴퓨터-h4w 4 месяца назад +5

    I've been waiting for 'Stormgate' to release for a long time, and I finally got to play it for the first time yesterday.
    And now I'm watching this video today hahaha😂

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

    Thank you! Onto the next episode! Comment for algorithm

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

    Thank you! I was looking for something like that and your channel is really helpful!

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

    Hey, I'm just starting Unity with visual scripting, I'll try to keep up with this tutorial ! I also want to create a RTS like those old games I still play with to this day !
    Thank you in advance, I like your straight-forward type of video.
    Let's goo 👊

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

    You are a legend! Thank you for making this

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

    Nice. Happy you didn't mention "Turn base" I hate all those tutorials and is hard to keep following them. Would be nice to have a fog on the map, so that you need to send your units to discover the map which is hidden by default, a mini-map and most importantly and hardest to do I think would be some way to access the mesh and change the vertices Y positions near your raycasthit to rise, lower or flatten the terrain when you place buildings (This would also be nice for the survival series for when you place buildings on uneven ground, I guess it could be done by searching the lowest elevation under building placement "ghost" and lowering all terrain in that said area to its values). I was able to make something to lower my terrain with the idea and hope to make moats with water, sadly I could not make it get refilled with water from the rivers yet, but guess I could do a check to see if close to other water layers and if yes, then add a little water every X amount of seconds. in my case choosing to go without tiled map could be a challenge though.
    Looking forward to this series and to see what you have in mind for it, also nice to see you decided to use a cam!.

  • @MrOmega-cz9yo
    @MrOmega-cz9yo 11 месяцев назад +2

    Hi Mike! Nice start for this series. I do have a small suggestion though. Instead of using cam, you might want to use mainCamera. I assume this project will include a mini-map, which will require another camera, and we want to be clear when switching between cameras.

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

    hey Mike! excited to follow the series will it eventually go over DOTS/ECS packages? Thanks for putting this out there!

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

    Thanx as very few vid tutorials are available on this topic

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

    It was unexpected to see a tutorial for this genre. Let's see if the author will be able to complete this game.

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

    Thankl you for that lesson!

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

    Nice! Will you also include how to add multiplayer mode? :)

  • @4yougamez254
    @4yougamez254 4 месяца назад +1

    we love you man thanx for this Tutorial ❤❤❤❤❤❤❤❤

  • @wissensbuff
    @wissensbuff 7 месяцев назад +3

    Good Video Dude =) Helps me a Lot for a Player Movement for an MOBA Game. And by the way... how big is your Monitor? xD its looks funny how far your eyes move to the top by clicking on the Navigation Panel.

  • @AykraidTheStone
    @AykraidTheStone 6 месяцев назад +10

    your tutorials are what a fucking tutorial should be: simple, straight to the point, no bullshits

  • @lastofthecelt
    @lastofthecelt 4 месяца назад +1

    THANK GOD FOR YOU MAN!

  • @Damnedindenial
    @Damnedindenial 9 месяцев назад +2

    for everyone having issues, there is a typo in his cod and naming the ground layer mask, in his code he puts ground in all lower case, but in his layer mask he puts it with a capital G the layer mask in the code needs to be names the same as the layer mask itself or the computer wont know what layer you are referencing

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

      Didn't work. Changed Layer Names, nothing happened. On the other hand,why is it working in his video, tho? Did he change something off-camera? then what's the point of a teaching tutorial?

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

      @@chrisflyvr ground in the code is just a reference to the layermask itself and because it is set as Public it shows up in the Inspector with a capital G. That is just how Unity shows public variables in the Inspector. You just need to make sure that you added a new layer for the Ground and set the Terrain to be on that layer.

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

    nice tutorial

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

    Are the other series DEAD ? :( but if so good first tutorial all though I don’t want to make a RTS game I am exited how it will turn out :)

    • @Mikes-Code
      @Mikes-Code  11 месяцев назад +2

      No, the other series (Survival Game) will still continue.
      I still have a lot of plans for it.
      (The FPS series did end some time ago, and because it ended I decided to start another one).

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

    Nice video!

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

    Any chance the finished engine would be able to be purchased as an RTS template? Would be amazing for a game I'm working on

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

    do we HAVE to use the URP? just wondering

  • @최진우-w1k
    @최진우-w1k Месяц назад

    How can you make Ground (Nothing) 7:41?

  • @AbhishekKumar-yl1ld
    @AbhishekKumar-yl1ld 11 месяцев назад +1

    Thank you so much sir please start new series which is on clone of cash of clan game

  • @chrisflyvr
    @chrisflyvr 5 месяцев назад +2

    Good tutorial, but if you change something off-camera, please tell us. Thanks. (In this case ground ≠ Ground)

    • @Mikes-Code
      @Mikes-Code  5 месяцев назад

      What do you mean? Can you tell me when this happened in the video?
      I always try my best to show everything, unless these are things that don't affect the code, like UI adjustments and such.
      Please let me know...

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

      In the code ground is just a reference to the layermask. When you see it in the inspector it has a Capital G, that is just how Unity shows all Public variables in the Inspector. Ground in the Inspector is ground in the code... Some following along may have forgotton to set the Terrain to be on the Ground layer which could explain why the unit does not move..

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

    For anyone having issues getting the unit to move, ensure you capitalize "Start" and "Update" functions or the unit will not move.

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

    Thank you!

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

    O meu deu erro: Failed to create agent because there is no valid NavMesh
    O que pode ser?

    • @Mikes-Code
      @Mikes-Code  6 месяцев назад +2

      You need to add a nav mesh surface into your scene. Things changed a bit from earlier versions. Try to use the version I'm unity of unity.

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

      @@Mikes-Code Sim....realmente mudou! Obrigado pela atenção!

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

    Any idea why intellisense will not autocomplete the "AI" after UnityEngine, or any of the following (e.g.: NavMeshAgent)?
    I have done some searching and it said I needed the .NET sdk and .NET framework dev pack among other things. But those are not in this tutorial. Do you have a dev environment setup video to get the right versions and hook it all up?
    Otherwise, seems like a good tutorial. Good job!

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

    Thanks for posting this video! It’s really helpful for beginners and folks getting back into it. While I tried to implement this, I have everything working except one thing. When I select my unit and move it. I deselect it and when I try to reselect it, it’s not clickable. However, if I click the starting position of the object it works and the object, even if it’s all the way on the other side of the map, gets selected. It’s sooo strange. :head bang:

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

    Keep making fire videosss

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

    Nice🌹

  • @ludwigmoser-spitzenstatter5859
    @ludwigmoser-spitzenstatter5859 5 месяцев назад +1

    thanks for the tutorial, but my unit is not moving. i guess its due ground never gets assigned? so Physics.Raycast returns false! (i added logs to see what happens) (i am using Unity 6 Preview) Thanks in Advance!

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

    I dont see the URP project type.. i reinstalled everything like 3 times. Why is that?

    • @Mikes-Code
      @Mikes-Code  3 месяца назад

      Make sure you use the same editor version (2022.3.14f1) then when selected, scroll down in the list, and you should see it.

  • @Damnedindenial
    @Damnedindenial 9 месяцев назад +2

    I follow step by step, i have done it 4 times thus far, and for some reason my unit does not move

  • @FeasibleBike9
    @FeasibleBike9 16 дней назад

    What program are you using to write the C# in? Keeps sending me to notepad or MSword. im new to all this but don't think thats right haha.

    • @wm1pyro604
      @wm1pyro604 14 дней назад

      visual studio (not to be confused with visual studio code - I think visual studio works better with unity out of the box)

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

    Does Notepad ++ also work?

    • @Mikes-Code
      @Mikes-Code  3 месяца назад +1

      @@Lusitanian_ It is possible, but will be very hard because there will be no auto-suggestions, or even error handeling.

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

      @@Mikes-Code Ah okay. Thanks!

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

    bro are you ending 3D survival series

    • @Mikes-Code
      @Mikes-Code  11 месяцев назад +3

      No, not anytime soon.
      The survival series has a lot of content to cover.

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

    Thx!

  • @der-Dritte
    @der-Dritte 6 месяцев назад

    would it not work with a mouseondown?

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

    can i make this game in 3d, instead of 3d urp? and what is the difference?

    • @Mikes-Code
      @Mikes-Code  6 месяцев назад +1

      The difference is the way Unity deals with the graphics/materials.
      There should be not problem making a project with 3d built-in or HDRP, although some settings may be in a different place or setup differently, for example things related to the post proccessing and maybe a few others.
      But its just a matter of finding how to do it.
      That is why Google exists :)

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

      @@Mikes-Code Thanks for the quick and good explanation. I already started a project earlier in 3D, so i wanted to continue in 3D but with your tutorials :D
      Just completed the first and its well made and works perfect! Looking forward to the rest :)
      Good day to you

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

    for some reason i dont have that option on unity with ground in it in the script. and i copied the same script word by word

    • @Mikes-Code
      @Mikes-Code  Месяц назад

      @@TheFalseDragon did you create the ground Layer?

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

      @@Mikes-Code i did

    • @Mikes-Code
      @Mikes-Code  Месяц назад

      @@TheFalseDragon Did you add "public LayerMask ground;" inside the script? and made sure you saved the script so unity can compile it?

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

    I love. You

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

    For the algorithm

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

    I would probably not need all this physics and baking if i'am making a 2d rts

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

    First.

  • @michaelharris8111
    @michaelharris8111 8 месяцев назад +7

    the scripting with no actual explanation is not helpful.

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

      Well, he did start out saying that you should have some basic knowledge of Unity and coding. Now, his definition of "basic" may differ from your definition of "basic". And I will admit that I had to pause and backtrack a couple of times to see as well as hear, but I managed. You can too, with a little patience and confidence and some attention to detail.
      And if you're still having trouble, paste the code into Chat GPT ... that AI loves to explain code to humans. Cheers.

    • @Mikes-Code
      @Mikes-Code  5 месяцев назад +6

      Yes, as I said, this is not a tutorial that is meant to teach the Unity basics, but to teach how to build an RTS game and its different systems for someone that has knowledge of Unity.
      This episode is probably the easiest one, things will only get harder, so if things are confusing now, it may be a good idea to get familiar with Unity before.
      I still try to explain most things, but I obviously don't go into explaining fundemental things.

  • @kinghing69
    @kinghing69 12 дней назад

    Грациас, комрад