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.

Dark GDK / making walls/objects solid.

Author
Message
haYnguy
16
Years of Service
User Offline
Joined: 5th Jun 2008
Location: on my island
Posted: 5th Jun 2008 17:48
how do i make walls of a level solid? i'm just trying to get myself used to the whole gdk and i'm trying to add solid walls, to the sample game level in the tutorial.

-- from my island, aloha wau 'ia 'oe --
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 6th Jun 2008 01:32
Well..... That is MUCH harder then I think you might think... If you think it is ONE code thing, like dbMakeobjectSolid, your wrong...

I might not be the best person at explaining this, but I try it-

First, you have to download sparky's collision, it is really easy to use, and is really helpful. (If you need help placing the .lib file and the .h file- tell me.)

You can't really make an object a solid, you have to make a code that says, when this object collides with the wall, go back to the spot it was before it hit the wall.

Try doing this by your self, it is always better to get it working by yourself. The information I gave you I think will help.

If you are really stumped, check out jason's oop library, it is really good and helpful. http://code.google.com/p/darkgdkoop/downloads/list

At the bottom, there is a folder that is Sparky Config how to... Open that and debug that. Then, study the code.

p.s.- the sparky's thing was made when I asked this quesion, multiple times...
those links are--

http://forum.thegamecreators.com/?m=forum_view&t=128321&b=22
http://forum.thegamecreators.com/?m=forum_view&t=128400&b=22
http://forum.thegamecreators.com/?m=forum_view&t=128414&b=22
http://forum.thegamecreators.com/?m=forum_view&t=128461&b=22
http://forum.thegamecreators.com/?m=forum_view&t=128480&b=22
http://forum.thegamecreators.com/?m=forum_view&t=128872&b=22

I asked so many questions on doing this! I would say, if what I said doesn't help- these will, because they taught me....

~~Its not about what you know, its about how you figure it out.~~
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 6th Jun 2008 04:50
I'm not sure exactly what you mean by make the walls solid but they do appear to be solid to the camera sing the camera collision paramters. Even in the most sophisicated gamessuch as half life the objects are still made from triangular planes

System
MacBook Pro
Windows XP Home on Boot Camp
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 6th Jun 2008 05:40
Yes, I don't know of anything that isn't a bunch of triangular planes, aka polygons...?

If you can do any models for FW, reply to the FleetWars thread.

Click here!
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 6th Jun 2008 05:46
I think by "solid" he means that other objects can't go through it.
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 6th Jun 2008 11:20
You need a physics plugin. Good free one is Sparky's. If you got a few bucks to shell out, DarkPhysics is excellent; easy to use, fast, and relatively cheap.

While DarkBASIC, hence DarkGDK, has some inbuilt collision detection, it is not advisable to use them for anything other than simple box collision.


Tux is my guildmaster.

Login to post a reply

Server time is: 2024-11-17 17:35:17
Your offset time is: 2024-11-17 17:35:17