View Single Post
  #21  
Old 08-26-2007, 06:10 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by DustyPorViva View Post
There's no real way to avoid that other than upping the check. Actually, his script is using onwall2, and checking a whole tile rather than a single pixel, so that's a good step in avoiding that problem.
Thinking about it further, that problem wouldn't actually happen except under very rare circumstances, and can be eliminated entirely by increasing size of the area checked to 1.1,1.1. A greater problem would be the potential for the script to break down when the player is right up against a wall (shouldn't be a problem with 1,1, but would be with 1.1,1.1) or worse, "half" on a wall, as I'm sure you know is entirely possible (and would cause a breakdown even with 1,1).
__________________
Reply With Quote