Hi guys, nowadays I’m trying to do a basic block building system. But I can’t do it right. I watched everything tried everything but nothing works exactly as I wanted or they become buggy. Please can someone tell me the exact way to do that
Word you want to look for is: VOXEL
here are some voxel modules on unreal marketplace:
This above (ie you pay), or google for how to code VOXEL engine (do it in C++, blueprints will be kind of slow).
And before you buy anything there, read reviews, ask questions etc.
As above, hard to disagree. You could write a book on this topic. No one can tell you the exact way to do an entire game system.
But perhaps you do not want an Entire Minecraft Voxel Pro+ Notch Edition Certified
but only some simpler blocks stacking. This would still require too much script to post here. Do have a look at Hierarchical Instances Static Meshes (HISM). They’re speedy enough to create something usable; less than 5 mins of work gives me this:
Break it all down into small pieces and work on those. If you have a more specific question, do tell. See if you can figure out how to attach blocks to the sides of other blocks. The above only stacks them up vertically.
Thank you a lot sir, I will try your technicue with line trace, hope it will work as this
Hi, What to do if I couldn’t snap them vertically?
Because of my lessons I have small time so i couldn’t find the way to Snap them vertically and horizontal at the same time. Sorry to bother you.
You can use the normal of hit surface to find direction:
The above is in the Level Blueprint but should, ideally, be in the Player Controller. This is just a proof of concept so things can be scripted much better. Consider wrapping some reusable bits in functions.
- script to copy to speed things up (you will need to clean it up):
- project link:
- the result
Because of my lessons I have small time
The thing is that if you’re unable to do A and B on your own now, you’re absolutely not ready to tackle C, D and the rest of the alphabet. Do take your time to understand the basics, otherwise you’ll be wasting time later on banging your head against the wall and thus accomplishing little.
- adding more stuff:
– look into and understand how HISM components and their Instances work, the dos & don’ts
– look into how Per Instance Custom Data works - this can provide some serious optimisation benefits depending on how complex the systems become
– Instanced Dynamic Materials will be handy
– if you’re seriously considering working with HISMs on a larger scale, absolutely do look into the operations Sets offer - unique and efficient
– Map container will be useful, too
So many things to learn and @EPIC just keeps adding new stuff. One can never keep up
I am grateful, and I will improve myself in this program, I only got stuck at one point but I can do it myself the rest of the way. That was all I wanted for now, thanks again.