View Single Post
  #10  
Old 09-13-2007, 03:22 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
function doMove() {
  
temp.array = {int(random(1,5)),int(random(1,5)),int(random(1,5))};
  
move(this.distX[temp.array[0]]*this.dispT[temp.array[2]],this.distY[temp.array[1]]*this.dispT[temp.array[2]],this.dispT[temp.array[2]],20);
  if (
this.distX[temp.array[0]]==this.distY[temp.array[1]]==0) {
    
dir int(random(0,3));
    if (
this.ani != "idle") {
      
setcharani("idle",null);
    }
    
sleep(this.dispT[temp.array[2]]);
  }else{
    if (
this.ani != "walk") {
      
setcharani("walk",null);
    }
  }

for example ;o
__________________
Reply With Quote