Thread: Onwaal
View Single Post
  #16  
Old 05-25-2007, 09:19 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Stefan View Post
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.
I probably was thinking of diagonal checks then. I just remember having trouble when I scripted my trigonometric movement using onwall2(). But hey, if onwall2() works better, use it!
__________________
Do it with a DON!
Reply With Quote