Making a RTS game #37: Using workers to construct buildings 2/3 (Unity/C#)

Let’s continue our RTS and improve the visual of our refactored construction process!

Mina Pêcheux
CodeX
Published in
17 min readNov 18, 2021

--

⬅️ Tutorial #36: Using workers to construct buildings 1/3 | TOC | Tutorial #38: Using workers to construct buildings 3/3 ➡️

📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!

Last time, we started refactoring our building construction process so that, instead of placing them instantly on the ground, we have Worker character units build them gradually, over a short period of time.

The core logic is in place, but there are still some improvements we can make to the visual of this construction process.

So, today, let’s continue this feature by changing the building shape throughout its construction, adding some smoke effect and finally limiting the number of Workers for one given construction. Then, next time, we’ll wrap up our new construction scheme by adding some sound and finishing up the refactors.

Modifying the building visual as it builds!

It is pretty common in RTS to have the visual of the building change throughout

--

--

Mina Pêcheux
CodeX
Writer for

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)