
05-09-2006, 11:05 PM
|
|
Registered User
|
 |
Join Date: Jul 2003
Location: Canada
Posts: 1,070
|
|
|
Not quite...
onwall2(x,y,width,height) returns a boolean value (true or false value).
So if you wanted to see if the left side of a player was blocking, for example, it would look something like this:
if (onwall2(player.x,player.y+1,1/16,2)==true) {
player.blockleft = true;
}
else {
player.blockleft = false;
} |
|
|
|