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 / Nuclear Glory Collision DLL

Author
Message
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 12th Mar 2004 22:49
Someone help me understand how to use the nuclear glory collision dll and give a few short demos on how to use it? i need it for the pacman thread i'm also using the demo version and might buy if it does wot it needs.

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 12th Mar 2004 22:55
Did you examine the example code that comes with the DLL package?

Also, be sure to read our online manual at:
http://www.nuclearglory.com/tutorials/NGColl/203/DBPro/

And, here's a nice codebase entry on the DLL's usage:
http://darkbasic.thegamecreators.com/?m=codebase_view&i=6d99af4a5acc16df108236b718052d76

And if you have any specific questions, feel free to ask.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 12th Mar 2004 23:17
i've had alook at the tut section of you're site but it is just explaining the commands and there syntax and the codebase entry doesn't work so that no use. could you or someone else give me a few short tuts on using this for a pacman game.? (check the pacman thread for the existing code) please

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 12th Mar 2004 23:46 Edited at: 13th Mar 2004 00:19
There's a lot of various code posted all over that thread, lol.

The DLL is designed to work for 3D graphics so I'll assume you're doinng the pacman game in 3D.

Most of the work goes into the setup.

Code would run like:



That's mostly pseudo-style code. You'll have to try and plug it in

EDIT:
I also posted on your PacMan thread.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 00:22
could you explain what the #Constant command does?

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 00:30 Edited at: 13th Mar 2004 00:31
That's a DBP command, it's not specific to the collision system.

A constant is a global variable (a variable that can be accessed from all parts of the program) that cannot be changed at all during runtime (hence the term "constant" or "not changing").

You do not NEED to use constant variables. I do because it's good programming practice and prevents us from accidentally changing the value of the variable sometime during the program.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 00:42


How would i set up the collision for this code what do i need to put in the SetCollisionPro() command?

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 01:16
Here you go, the completed code:



Make sure it's in the same folder with the NGCollision.dba and NGCollision.dll file. And that's all there is to it.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 12:34
what doe the vaible do why re they there?

GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 12:38
that does not collide with the walls i have possitioned just random wall on the map that i cant see. why is that? how is it fixed so it colliside with create and positioned objects?

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 13:22 Edited at: 13th Mar 2004 13:22
That code snipplet compiles and runs great in DBP. Are you using DBC?

I'm not sure what you're asking, could you be clearer in your questions?

Read our online manual to learn what all of the commands and variables are for. It's all in there.

You also need the demo package from our website installed that has the NGCollision.dba and NGCollision.dll file in it.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 13:26
I have DBPro and the demo pack installed and in the same directory but when i compile it collides with wall i can't see not the ones i can see. why is this?

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 13:56
Did you change the code at all? The above snipplet runs without any issues like that.

Could you provide the source you're having trouble with?

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 14:30
the code you provided ealier doesn't collide with my walls it collides invisable walls.

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 14:38 Edited at: 13th Mar 2004 14:40
lol, I don't know what you're talking about.

I just copied that code EXACTLY from the code snipplet above and created a new project for it and everything. It runs great with collision. What are these "invisible walls" you're talking about?

I can make a package for you so you can download, unzip, and run it if you want to see that it actually does work.

Make sure you have the most recent DBP patch installed as well.

EDIT:
The laid out red blocks (ordered in a maze fashion) are the walls, am I correct?

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 15:11
yes your correct and i have the latest patch installed. could you send me the zip please?

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Mar 2004 15:30
With pleasure.

Link at: http://www.nuclearglory.com/developer/NGColl/gj.zip
(Roughly 2.5 MB)

You should be able to open the .dbpro file and just run it. I included the EXE file in case it doesn't work for some reason.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
GameMaker Jason
20
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 13th Mar 2004 15:36

Login to post a reply

Server time is: 2024-09-22 00:41:26
Your offset time is: 2024-09-22 00:41:26