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 / .X collision on DBC

Author
Message
ace280
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location:
Posted: 6th Nov 2004 06:41
Is there a way to do a .x collision in Dark basic Classic, as you know im working on a FPS...

I looked at Nuclear 3d, but it most likly wont work for DBC, and I dont want to pay 24 dollars for a dll.

grr im angery, and im going to hit my face on a wall now!
Kivu_Rako
20
Years of Service
User Offline
Joined: 10th May 2004
Location:
Posted: 6th Nov 2004 12:15
you can do collision the db way.... but it is very complicated, i abandoned it long ago...
anybody correct me if im wrong but it goes like this *i think*
"
set global collision on
if object collision(movingobjnum,0)=1
position object movingobjnum,oldx,oldy,oldz
endif
"
i *might* have missed something but i know this works with .x files.
btw, you have to put
"
oldx=object position x(movingobjnum)
oldy=object position y(movingobjnum)
oldz=object position z(movingobjnum)
"
at the ***BEGINNING*** of your do loop, before the object moves, so it really does act as the oldx,y,z once the object moves!
if it doesnt work tell me, and ill look into it to give you all the right stuff.
of course unless somebody tries to show me up and do it first... (jk)

"geez, its probably a noobish mistake too!"
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 8th Nov 2004 04:07
NG DLL, it works like a dream and is the way to go for DBC
Hop a long
20
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 8th Nov 2004 09:24
Could you post a snippet and a description of what you want to do?

Login to post a reply

Server time is: 2024-11-27 15:52:28
Your offset time is: 2024-11-27 15:52:28