itch.io is community of indie game creators and players

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




Leave a comment