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!
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.
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.
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!!
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.
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😂
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 👊
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!.
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.
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.
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
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?
@@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.
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).
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...
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..
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!
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:
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!
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 :)
@@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
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.
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.
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.
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!
I love survival games and RTS. I find them very addictive. Thanks for adding the camera to your videos, they've come alive.
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.
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.
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.
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!!
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.
Omg, another fantastic series coming out. Thank you for making these videos!
This is really good and simple to understand. Can’t wait for the next episodes. Ty
Looking forward for the next tutorials. Straight to the point and very good explanations. 👌
Thank you for this awesome tutorial!
Thank you for the support
Finally ❤ its really hard to find a good RTS tutorial.
Thanks Mike for your great tutorials. Keep working on the survival game 🎮❤
Awsome! keep releasing them so we can make progress :)
Let's go Mike! Thanks for another series
Was having a lot of trouble getting rubber to meet the road until I found this. Thank you!
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😂
Thank you! Onto the next episode! Comment for algorithm
Thank you! I was looking for something like that and your channel is really helpful!
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 👊
You are a legend! Thank you for making this
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!.
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.
Good idea!
hey Mike! excited to follow the series will it eventually go over DOTS/ECS packages? Thanks for putting this out there!
Thanx as very few vid tutorials are available on this topic
It was unexpected to see a tutorial for this genre. Let's see if the author will be able to complete this game.
Thankl you for that lesson!
Nice! Will you also include how to add multiplayer mode? :)
we love you man thanx for this Tutorial ❤❤❤❤❤❤❤❤
You're welcome!
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.
your tutorials are what a fucking tutorial should be: simple, straight to the point, no bullshits
THANK GOD FOR YOU MAN!
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
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?
@@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.
nice tutorial
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 :)
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).
Nice video!
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
do we HAVE to use the URP? just wondering
How can you make Ground (Nothing) 7:41?
Thank you so much sir please start new series which is on clone of cash of clan game
Good tutorial, but if you change something off-camera, please tell us. Thanks. (In this case ground ≠ Ground)
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...
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..
For anyone having issues getting the unit to move, ensure you capitalize "Start" and "Update" functions or the unit will not move.
Thank you!
O meu deu erro: Failed to create agent because there is no valid NavMesh
O que pode ser?
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.
@@Mikes-Code Sim....realmente mudou! Obrigado pela atenção!
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!
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:
Keep making fire videosss
Nice🌹
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!
I dont see the URP project type.. i reinstalled everything like 3 times. Why is that?
Make sure you use the same editor version (2022.3.14f1) then when selected, scroll down in the list, and you should see it.
I follow step by step, i have done it 4 times thus far, and for some reason my unit does not move
Are you using the right mouse button?
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.
visual studio (not to be confused with visual studio code - I think visual studio works better with unity out of the box)
Does Notepad ++ also work?
@@Lusitanian_ It is possible, but will be very hard because there will be no auto-suggestions, or even error handeling.
@@Mikes-Code Ah okay. Thanks!
bro are you ending 3D survival series
No, not anytime soon.
The survival series has a lot of content to cover.
Thx!
would it not work with a mouseondown?
can i make this game in 3d, instead of 3d urp? and what is the difference?
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 :)
@@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
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
@@TheFalseDragon did you create the ground Layer?
@@Mikes-Code i did
@@TheFalseDragon Did you add "public LayerMask ground;" inside the script? and made sure you saved the script so unity can compile it?
I love. You
For the algorithm
I would probably not need all this physics and baking if i'am making a 2d rts
First.
the scripting with no actual explanation is not helpful.
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.
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.
Грациас, комрад