Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / question on movement

Author
Message
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 17th Jul 2008 10:02
I feel stupid to not be able to overcome this simple problem but, heres the thing.

With the new addition of buildings, i need to make it so that when the zombie,player,or citizen, runs into a wall, they don't go through it. I don't want them to turn, or find a path, or give up drinking and convert to christianity, just not go through the buildings. Any help on how to do this?

parrot
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 17th Jul 2008 11:31 Edited at: 17th Jul 2008 11:32
Basically the same way you would keep your player character from moving through objects; make collision check.

Something like

(That's pseudo code, by the way)

"I kören hörs de brummande busarna Björnligan och Gondolen"

Login to post a reply

Server time is: 2024-11-15 20:57:50
Your offset time is: 2024-11-15 20:57:50