and this is the walkable version
for when you wunna make a playerworld so ppl can walk around and stuff
this one just has a bit of lag cuz it does too many checks so i had to make it sleep so it doesnt stop
NPC Code:
//NPC made by LiquidIce - NOT HIRING
//the level maker
timereverywhere;
if (playerenters) {
randomtiles();
}
function randomtiles() {
for (this.x=0;this.x<64;this.x++) {
for (this.y=0;this.y<64;this.y++) {
this.onwall=1;
while (this.onwall=1) {
this.tiley=random(0,15);
this.tilex=random(0,255);
board[this.x+64*this.y]=this.tilex+16*this.tiley;
updateboard this.x,this.y,1,1;
if (!onwall(this.x,this.y)) { this.onwall=0; }
}
}
sleep .05;
}
}