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 Professional Discussion / how to do collisions

Author
Message
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 1st Apr 2014 18:27
i know some way to collide with the objects that i load in without collision boxes. i make a box where the player is and then i offset boxes around the box. and if the wall intersects between the box and me, it stops the player. idk if i explained right but is there a better way to do this without collision boxes?
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 1st Apr 2014 19:20 Edited at: 1st Apr 2014 19:22
I use Nuclear Glory for collision .

Lance
wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 1st Apr 2014 22:41
Sparky's here. Awesome, fast, free, and once it's set up correctly you don't have to tinker with it.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 1st Apr 2014 22:55
For me it's Newton wrapper. It's quite outdated now (v1.53, sdk is already 3.x) but gets the job done nice and easy. Although in saying that - I too recommend Sparky's dll since it's easier to use. With Newton you essentially need to apply forces for every movement you want AI or player to make which may cause unwanted results at times..

IS that a game, a program, or 3 year old drawing.
29 games
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 1st Apr 2014 23:04
Newton is a physics engine though, not just simple collision. I too use Sparky's dll.

I'm pretty sure the links no longer work so I've attached it.

Attachments

Login to view attachments
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 2nd Apr 2014 18:32
i dont know how to get sparky :/ @wattywatts
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 2nd Apr 2014 18:33
and how to install and everything
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Apr 2014 22:22
Well, 29 games has attached Sparky's DLL to his post above yours. If you download that, there will be a read me file how to install it, and there is also some examples and help files to get you started how to use it.

IS that a game, a program, or 3 year old drawing.
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 3rd Apr 2014 00:59
i downloaded it but cannot find the folder for dbpro. all i found was DBProFreeInstaller.exe
wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 3rd Apr 2014 01:04
Quote: "i downloaded it but cannot find the folder for dbpro. all i found was DBProFreeInstaller.exe"

What exactly did you download? I just checked 29 games attachment and it's what you need, the dll and examples, no exe to be found.
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 3rd Apr 2014 01:19
The exe wasnt from the dll. its from my dbpro. i was trying to find this folder ...... Dark Basic Professional\Compiler\plugins-user
wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 3rd Apr 2014 01:35
Are you running the free version of DBP then? I'm not sure that it accepts plugins.
If that's the case (and I'm not sure it is), you could always set your level collision to polygons if you don't want to make collision boxes.
Mikeygd3
11
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 3rd Apr 2014 01:41
yeahh its the free version. and i dont understand?
wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 3rd Apr 2014 02:02
If you're referring to the set object collision to polygons command I mentioned, here's a simple example for you to take a look at.
29 games
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 3rd Apr 2014 13:22
I use the free version of DBPro and Sparky's collision works fine.

The location of DBPro on your computer should be something like (but this might be different for you so you may have to hunt it down):

C:\Program Files (x86)\The Game Creators\Dark Basic Professional

Then just follow the instructions in the "readme" that come with Sparky's:

Quote: "Place the 'SC_Collision.dll' file in your 'Dark Basic Professional\Compiler\plugins-user' folder

If you want key work highlighting in the IDE place the 'Help\Keywords\SC_Collision.ini" in your "Dark Basic Professional\Editor\Keywords' folder"


You will then need to open up DBPro and select "tools > rebuild keywords" and then you should be good to go.

Login to post a reply

Server time is: 2025-05-15 10:11:58
Your offset time is: 2025-05-15 10:11:58