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 / Need help with DB classic collision

Author
Message
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 31st May 2006 21:21 Edited at: 1st Jun 2006 00:04
I've got a .x object that I have made, but I can't get the collision to work. When I set object collision to polygons, it never collides, but if I don't, it uses box collision and I can't co anywhere! Can someone tell me why, or make the collision work? Please?

I thought it was the hollow box around the object, but it doesn't work even without that.
The objects are attached, neither work.

Here is the code:


PLEASE!!!
I need this before the end of the week

There are three types of people, those that can count and those that can't.

Attachments

Login to view attachments
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 1st Jun 2006 11:09
ok ill be honest with you i have never been able to sucessfully use DBC collision sucessfully EVER so im sure there is something huge i am doing wrong. i woudl reccomend that you use Sparkeys collision dll as it works well. there is a DBC version out there somewhere you will just have to search the forum a bit

I am a Christian and I know that God loves me. That is what makes my life so great!
Commodore kid
18
Years of Service
User Offline
Joined: 3rd Jun 2006
Location: Staffordshire, England
Posted: 4th Jun 2006 19:13
I used to have that problem but found a solution. what u have to do is turn collision off on the main objects and make a smaller objects inside them. then turn the collision on for the object inside. make sure the object has the same shape though.

im sorry for the spamming i used to do i hope u can all find it in your harts to forgive me
Commodore kid
18
Years of Service
User Offline
Joined: 3rd Jun 2006
Location: Staffordshire, England
Posted: 13th Jun 2006 19:21
Did it work?

im sorry for the spamming i used to do i hope u can all find it in your harts to forgive me
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 13th Jun 2006 21:21
Sorry, it's the wrong sort of world for that, it is hollow, and it doesn't move. The player object already does what you said.

But thanks anyway

There are three types of people, those that can count and those that can't.
zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 14th Jun 2006 14:30
Sparky´s collision dll --> http://forum.thegamecreators.com/?m=forum_view&t=31051&b=5

It´s really good!

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th Jun 2006 16:02
or use a world editor that can place collision boxes. *cough*tiame*cough*

Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jun 2006 21:53
Yeah, thanks. I've already solved the problem. If you look at http://forum.thegamecreators.com/?m=forum_view&t=80576&b=8
You'll see my new problem.

If you've got a very fast computer, the game should run fine.
Otherwise, that's the problem

There are three types of people, those that can count and those that can't.
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 15th Jun 2006 17:19
hey diggsey, can you post the fixed collision code? i'm having trouble getting my collision to work... i would really like if you'd show me how it's done

Just google pallmanni and get the history of me!

http://whatishl.ytmnd.com/ so friggin funny!
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 15th Jun 2006 18:48 Edited at: 15th Jun 2006 18:49
Sorry, it works but it's not exactly the best method.

But I'll show you anyway.



There must be a better way

This is really slow when made into an exe.

(uses sparkys collision dll)

There are three types of people, those that can count and those that can't.

Login to post a reply

Server time is: 2025-05-25 04:15:18
Your offset time is: 2025-05-25 04:15:18