Thread: Box Checks
View Single Post
  #6  
Old 04-11-2010, 11:18 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Then use a for loop?

PHP Code:
for (temp.i = player.x; temp.i < (player.x + 3); temp.i++) {
  for (
temp.j = player.y; temp.j < (player.y + 3); temp.j++) {
    if (
temp.i in |this.x - 6, this.x + 6| && temp.j in |this.y - 6, this.y + 6|) { 
      
// In Box 
    
} 
  }
} 
__________________
Quote:
Reply With Quote