Thread: Onwaal
View Single Post
  #15  
Old 05-25-2007, 06:56 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by zokemon View Post
onwall2() might have been fixed up a little better but otherwise, I suggest onwall() personnally as I have always found it to be way more accurate in my wall checks.
onwall2() should always work fine, both are doing pixel-accurate checks on clientside and image-rectangle check on server, or checking the covered tiles.
For car movement it can be better to use onwall() though, since you need to do several checks to detect how you are touching the wall. It is especially quite some work to detect diagonal walls like on Zone, it is working most of the time but when the bike is fast it is getting harder since doing pixel-accurate checks on the whole shape of the bike is too slow.
Reply With Quote