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 / tweaking dbcollisions.dll and a graphics prob

Author
Message
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 27th Sep 2005 00:24
well ummm yeah.

How would i tweak the hight that you step onto for the dbcollisions.dll. Im making my game off of the .x demo so anyone know what to do? You can step thru window sills and all sorts of stuff in my game now.

and anyone know why distant objects do this wierd thing and what I should do to stop it?



verydevastating.com
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 27th Sep 2005 00:30
hers teh pic



Im sorry i have picture problems

verydevastating.com
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 27th Sep 2005 00:59
the distant objects going funny is, in my experience, when two objects are intersecting each other. Make sure the skirting board is not 'in' the wall but is actually ON the wall. What is the other problem? if it is the height off the ground that you are, this is solved by changing the variable marked height off ground or something like that.
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 27th Sep 2005 02:10
I've got the hight variable okay, I even got it to adjust for crouching and stuff But the problem is the ramp and stair code. I cant figure it out, cas I have the programming abilities of a bagel. When you walk up to something, it checks the height and if it thinks it's reasonable to step onto, like a mat or a stair, then it gets on it. I think it has something to do with the hup# command but I'm not sure. I just need to know how to get it so that it will only step onto something about half the height of the default.

verydevastating.com
toggy
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location: Serbia
Posted: 27th Sep 2005 02:38
@devastation 328

Hello,

hup# variable makes climbing on stuff smoother.Without it player would jump instantly from ground level to say some crate or table.
I made that hup# variable,so be sure in my words.
Anyway to stop player step onto things above half of his height(charht#) just replace this line in _collisions subroutine:

col=intersectObjectDBC(1,1,cx#,cy#,cz#,chx#,cy#,chz#,0)
in to:
col=intersectObjectDBC(1,1,cx#,cy#-(charht#/2),cz#,chx#,cy#-(charht#/2),chz#,0)
That will drop "ray-casting" to one half of player`s height,and solve your problem.
Hope this helpes.
All best.Any question at: [email protected]
Toggy.
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 27th Sep 2005 05:35
YAY! Thanks so much! This community is so awesome!

verydevastating.com
toggy
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location: Serbia
Posted: 28th Sep 2005 01:03
@devastation 328

Any time.
Glad to help.

Login to post a reply

Server time is: 2025-05-22 13:19:15
Your offset time is: 2025-05-22 13:19:15