I am trying to make random generated maps terraria styled no code using events conditions and actions the part I specifically need help with is I want it to where my grass blocks don’t spawn on top of each other so i basically want the grass blocks to be able to spawn on dirt and other blocks that are not grass and I also want help so that this map is random generated in way that if there is 50 grass blocks generated in total all of these are duplicated from 1 grass block in the editor
Also if you know how to make randomly generated buildings that spawn randomly in the map that would be nice
I figured out some of it but I need some help with this other problem when you start the game a certain amount of blocks are created separated into 2 layers one up top and one below and since I don’t want grass stacked on top of each other when the top and bottom layer collide I tried making it where it randomly decides to delete on of the ones that collided but now it just deletes almost every block what’s wrong with this here
hi - if you’re wanting to do something like terraria then I think you’ll end up with too many objects unless you limit the number of objects to just the area local to the player. GDevelop doesn’t handle lots of objects that well. Have a look at the thread last year on ‘object culling’ There’s probably threads here on world building too. You can do it based on a 2d grid written into an array where each number is an object , or a grid with areas that contain objects and store the data relating to those objects inside a structure inside an array.