Thread
:
Box Checks
View Single Post
#
4
04-11-2010, 10:58 PM
fowlplay4
team canada
Join Date: Jul 2004
Location: Canada
Posts: 5,200
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:
fowlplay4
View Public Profile
View GraalOnline Profile
Visit fowlplay4's homepage!
Find all posts by fowlplay4