Thread: onwall and such
View Single Post
  #8  
Old 05-09-2006, 11:05 PM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
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;
}