View Single Post
  #7  
Old 05-09-2007, 04:19 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
so if i wanted it to set somthing down that was 4 tiles by 4 tiles would i do:
PHP Code:
i = 0;
  for (
tx = px; tx < px + 4; tx++) {
    for (
ty = py; ty < py + 4; ty++) {
      
tiles[tx,ty] = bushtiles[i];
      
i++;
    }
  } 
or like:
PHP Code:
i = 0;
  for (
tx = px; tx < px + 2; tx++) {
    for (
ty = py; ty < py + 2; ty++) {
      for (
ty = py; ty < py + 2; ty++) {
          
tiles[tx,ty] = bushtiles[i];
          
i++;
    }
  } 
__________________
**FLIP OUT**
Reply With Quote