I have an 2-dim array, where i want to remember my level setup based on tiles. After i´ve generated a room, i want to set it´s number into my memory (the array) for every tile it occupies. I´ve tried a nested loop, write the number in to the affected x,y coordinates and try to read it again to log it into a textbox.
but the textbox is filled with zero´s although the Room.Nr is 1. I´ve also tried a fixed value, but still zeros. Here is my "algorithm":
https://www.dropbox.com/s/parsfwjf0rjakdb/update-array-with-nested-loop.PNG
Any idea, why it is not working? The iteration seems correct (tested by another logging of loopindex x;y)