In this game, http://scratch.mit.edu/projects/rabbit1131/2048916
When terrain generates, I want to log what each block value is, and whenever a change is made, log that change. So this way I can create other dimensions, but when you come back the world is the same.

Offline
Use a list? If your height is, say, 50 blocks, use 1-50 for the first column IDs, 51-100 for the second column IDs, etc. You can write a simple algorithm that converts x and y into a number in the list.
Offline
uhh
use lists, or like those 2d array things that i saw on the scratch wiki
Offline
schnrfl wrote:
Use a list? If your height is, say, 50 blocks, use 1-50 for the first column IDs, 51-100 for the second column IDs, etc. You can write a simple algorithm that converts x and y into a number in the list.
I'll try that..

Offline