Thread: Box Checks
View Single Post
  #4  
Old 04-11-2010, 10:58 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
You want to do this..?

PHP Code:
if (player.x in |this.x - 6, this.x + 6| && player.y in |this.y - 6, this.y + 6|) {
  
// In Box
} 
Use that and you could..

1. Check the center
2. Check the corners
__________________
Quote:
Reply With Quote