Thread: test 4 tiles
View Single Post
  #2  
Old 12-13-2001, 04:30 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
something like this

NPC Code:

if(created){
showcharcter;
}

if(playerenters){
this.tilelist={*tilenumbers you got with tile[] or board};
timeout=.1;
}

if(timeout){
if(tiles[x+1.5,y+2] in this.tilelist){show;}
else {hide;}

//something like movement here
timeout=.1;
}



U don't need showcharacter it's just an example
__________________
No Webhost at the moment

Last edited by TDO2000; 12-13-2001 at 05:12 AM..
Reply With Quote