Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Random Building Generation

I have been working on creating a building generation system, this system will take a building and also generate the items inside it.

I have been struggling to make the system as user-friendly as possible. First I made it take child actors class to make the position where items would spawn, but I ran into a problem where I would have to add more code for each item I wanted to add. My solution was instead of taking child actors I would use something like a scene component and check how many scene components the building has then randomly select a scene component and spawn my object on its location. This solution was made so I could just add more scene components with out the need to add code to them




11


.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.