Help with a Block-Themed RTS Game

Im making a game in unity 5 where you get to build armies from blocks, similar to minecraft, space engineers or starmade, but i need a GUI that will allow this when you select a unit production building, btw, i’m using Voxel’s Cubiquity for this.

P.S. if this is the wrong forum to post this, let me know and i’ll relocate it to the proper forum

So whats the scripting issue? =D

knowing what kind of script i need for this and how to make it, basically it’s like a sandbox builder within the main game

So you are wanting to know how to get the gui to be visible when the player clicks on the block?

This problem is far too big and unscoped for anyone to give you a meaningful answer. Try starting here:

I’ve been looking into this myself, for a proper RTS, you’re going to need to learn about instantiate, using arrays to make the grids themselves, both for building and for unit movement as well as raycasting, that’s for just the basic game mechanics as well, you’ll also need to look into how to make a decent RTS camera.

So in short, RTS’ are pretty damn complicated, if this is your first project don’t do it, platformers are simpler trust me :stuck_out_tongue:

I’ve been down this road (I’m working on a voxel RTS as well) and while I hesitate to disagree with @Kiwasi I can give you a little guidance.

Here’s some advice:

Don’t build an in game voxel editor. This is a huge freaking ball of wax. Instead, import from existing voxel editors. My favorites are:
https://blackflux.com/
https://voxel.codeplex.com/

Leverage Existing tools:

If you’re using Cubiquity, great. It’s awesome tech, stick with it.

If you’ve got your heart set on building an in game editor, here’s some initial Steps:
Find a block via a raycast to the mouse position.
Tell Cubiquity to remove it.
Figure out how to add a block on one face of a cube. How about the other face?
Save, reload.

From there, iterate. Rome wasn’t built in a day and RTS games are about as hard as building a content rich RPG. You need to think about AI, pathfinding, mesh deformation and LOD. Cubiquity will do storage and volume deforms for you, but you need to think hard about what you’re doing. Break it down into small steps, code from there.

When you do crack it though, it’s insanely rewarding.