RabbleGS
(RabbleGS)
May 19, 2020, 12:29am
3429
I might have explained it a bit poorly. UpdateTilesInRange is necessary for the setup that I’m suggesting. You see, the Grid Manager is always of size 999*999 tiles. GridSizeX and GridSizeY simply defines the area that the Grid Manager adds to the GridLocations and GridEdges arrays at startup. So you do not need to have a super high grid size, since you are doing this manually as needed (using UpdateTilesInRange).
As for placing stuff outside the bounding box, I recommend simply adding your starting tiles at the center of the grid (999 tiles divided by two, times the default tile size of 200 UU ~= X: 10 000, Y: 10 000). Then you can add tiles in any direction without crossing the boundary.
Hi ,
I’m still confused, so should we be using the UpdateTilesInRange function with how we’re spawning them? Will that prevent the issue of ever going out of bounds?