Hello! I have a difficult question.
I have an array of size 800,71,1
This array has data, the some cells are filled, and the remaining ones are just empty like 0,0,0,0,... etc.
Question. I need to reduce the size of the array to the available data. So for example, if any number or letter is in the array, instead of 0,0,0,0, then this cell should remain, and all the others should be cut and resized. For example (if 300 cells in the array have any data, and the next 301-799 will have 0,0,0,0, etc. Then the game does set size (x=300, self.height.)
I did something similar, but it does not work at all. I will be glad for help