Quote:
Originally posted by thotijn2
i know that liquid
but i mean i wanted to know if i can change more tiles in one code so i don't have to copy and paste a million times
but now i tried this and it worked
board[this.x+this.y*64]=tilex+tiley*16;
updateboard this.x,this.y,1,1;
now add a timeout out and stuff and you're done...
please correct me if i'm wrong..
|
I would just make a function and call it netime i need to change something
like I would make
NPC Code:
this.tilex=20;
this.tiley=18;
this.x=10;
this.y=30;
replacetile();
function replacetile() {
board[this.x+this.y*64]=this.tilex+this.tiley*16;
updateboard this.x,this.y,1,1;
}