Uploaded January 2024 | Updated November 2026, 3 hours ago
We need to work on the region system we talked about in previous videos, before we start making units go to combat with attributes and modules, let's work on stablishing the foundations of a region system first, so let's see how to make a terrain for a RTS game,
This part we are going over some of the leftover of the code that should allow you to start building and implementing your own region systems, the type of information you want to save and store to keep it, and how you want to process them, the important step here is processing these objects needs a special care because of the amount of objects you can have, some things can be optmized like the mouse icon change example present in this video part,
But other things like keeping track of objects into regions, you will probabilly need to process all objects at some point, best way to deal with that is to filter all the objects you want for something specific and to iterate through them with some delayed rate, on this example a timer is used with 0.25 seconds to delay the processing of objects inside regions, at some point we will need more advanced and faster methods, which I am experimenting to build combat systems in this project, detecting units is going to be a big stepping stone for that.
We need to work on the region system we talked about in previous videos, before we start making units go to combat with attributes and modules, let's work on stablishing the foundations of a region system first, so let's see how to make a terrain for a RTS game,
This part we are going over some of the leftover of the code that should allow you to start building and implementing your own region systems, the type of information you want to save and store to keep it, and how you want to process them, the important step here is processing these objects needs a special care because of the amount of objects you can have, some things can be optmized like the mouse icon change example present in this video part,
But other things like keeping track of objects into regions, you will probabilly need to process all objects at some point, best way to deal with that is to filter all the objects you want for something specific and to iterate through them with some delayed rate, on this example a timer is used with 0.25 seconds to delay the processing of objects inside regions, at some point we will need more advanced and faster methods, which I am experimenting to build combat systems in this project, detecting units is going to be a big stepping stone for that.










