Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes

Me and my teammate have recently been trying to get our procedurally generated maps to be polished and optimized. But we have run into a problem where the script that sets the cells to be the walls of the corridors does not collect the tiles that have been already drawn on layer 0 to the array where you get the used cells in the tile map, is there any way to fix this?

asked in CSC380Jan2024 by (485 points)

3 Answers

+1 vote

You might need to relayer your tilemap

answered by (1 point)
+1 vote

You could try using the set_cell function at the coordinates to be invalid i.e setting it to a negative number, and then setting it again. I would look at additional documentation as I know it works for gridmaps

answered by (1 point)
+1 vote

I think this tutorial may help: https://www.youtube.com/watch?v=d0Hb1Zs5GMQ

answered by (1 point)
...