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.

DarkBASIC Discussion / How do I make it so my charecter won;t go through walls and climb stairs

Author
Message
funky buddy82
21
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: The Matrix
Posted: 17th Sep 2004 06:55
Can any one help me get it so my FPS charecter will stop at walls and climb stairs.

Andras
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 17th Sep 2004 12:36
Nuclear glory would be the simplest answer. But you can always go with normal collision which is "if object collision(Player,Wall)=1 then bla_bla_bla...". Climbing stairs is gonna be a toughy
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 17th Sep 2004 17:08
HI,PiratSS , do you think you could fill in those blah blah blahs for me?
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 17th Sep 2004 17:45
I use the sparkys collision dll. It is very good!

but for normal collision you should use:

for x = 1 to total_objects
if object collision(player, x )
xp# = xp# - get object collision x(x)
zp# = zp# - get object collision z(x)
endif
position object player, xp#, yp#, zp#



I am not cool anymore... or am I?
http://n0id.proboards28.com/index.cgi - please join
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 18th Sep 2004 11:27
I have some collision links on my home page: Sparky, Jopie Dopie and Emperor Baal. The last site has info about incline collision.
http://www.geocities.com/hifin2003/index.html

Here's a short example of sliding collision. I use DBC.
http://www.geocities.com/hifin2003/sliding-collision.html

You might want to post a small example of your code.
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 18th Sep 2004 11:55
Or you could just check the tutroials. I dont know how much that would help but just a thought.

Visit the Dragon Games homepage @ www.angelfire.com/dragon2/dragonsinc/index.html
or go to the forums @ http://djblackdragon.proboards3.com

Login to post a reply

Server time is: 2025-05-24 17:34:31
Your offset time is: 2025-05-24 17:34:31