Quote:
Originally Posted by fowlplay4
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
|
Can't really because it's a largish area.
More along the lines of this (though not possible)
PHP Code:
if (|player.x, player.x+3| in |this.x, this.x+this.movementx| && |player.y, player.y+3| in |this.y, this.y+this.movementy|) {
//overlapping points
}