Member-only story
Making a RTS game #36: Using workers to construct buildings 1/3 (Unity/C#)
Let’s keep working on our RTS — today, we’ll see how to change the building construction process to use worker units!
⬅️ Tutorial #35: Improving unit navigation & adding unit formations 2/2 | TOC | Tutorial #37: Using workers to construct buildings 2/3 ➡️
📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!

In the last two episodes, we mostly focused on the character units. In this new tutorial, we are going to slightly shift the focus to both characters and buildings…
So far, we’ve been placing buildings directly and instantly on the ground, as “all-mighty god-like players”. It’s pretty neat and some strategy games work like this (again, the Industry Giant series is a good example), but most RTS are a bit different: instead, you have a builder/worker unit that can construct buildings over a short period of time.
Today and in the next tutorials, we’re going to refactor our building placement scheme to incorporate this logic. In this first part, we’ll focus on implementing the core logic; then, in the upcoming weeks, we’ll improve the visual and take care of various…