View Single Post
  #6  
Old 05-09-2007, 07:25 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by theHAWKER View Post
wow cool, can u explane the script cause it uses alot of random crap. for example:
PHP Code:
for (tx pxtx px 6tx++) { 
That does not exist in the script.

BUT:

This checks if a square (4 tiles) are grass ( if not, it stops )
PHP Code:
  for (tx pxtx px 2tx++) {
    for (
ty pyty py 2ty++) {
      if (!(
tiles[txtyin grasstiles)) return;
    }
  } 
This actually sets the tiles one by one.
PHP Code:
  i 0;
  for (
tx pxtx px 2tx++) {
    for (
ty pyty py 2ty++) {
      
tiles[tx,ty] = bushtiles[i];
      
i++;
    }
  } 
__________________
- Zidane / Zidaya
Reply With Quote