
12-28-2001, 10:56 AM
|
|
Registered User
|
Join Date: Jul 2001
Location: USA
Posts: 331
|
|
i dont thinkthat is right
|
first Let me saywhat the crap is this
if (timeout){
Check();
showimg 0,0,fish.gif,this.x,this.y;
timeout=1;
}
function Check(){
this.x=int(random(0,64));
this.y=int(random(0,64));
if (!tiles[this.x,this.y]=tile) Error... no ;
Check(); YOUR redoing the function within the function......
}
Ok i wil explain
ok have it so that it replaces the fish in a diffeent spot every couple seconds... right..
and lets not use functions..since.. it might confuse u.. no offense
if (timeout||created){ // does the stuff below when
// first created or when timer runs out
this.done=0;
while (!this.done=1){ // keeps doing the below until it finds a tile
//that is what ever the tile u are looking for is
this.x=int(random(0,64)); // gets a random number between 0&64
this.y=int(random(0,64));
if (tiles[this.x,this.y]=***){this.done=1;}
}
showimg 0,0,fish.gif,this.x,this.y; // shows fish at this.x and this.y
timeout=1;
} // ends statment
Where the ***'s are at put in the number tile for the water.. or what ever.. i dont know what it is
this should work i have not checked..
Hope that helps
Dragoon Vengance
Owner of Pangea Relics of Time |
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
|
|
|
|