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 / Advice about Car-Game

Author
Message
Stig Design Stig Magne
19
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 26th May 2008 03:18
can some one help or give me Advice/Tip`s on how to buld upp a car game in nott 2D/or 3D butt in DBC code
i have tried this menny times and in difrent way`s
in
-Main Menu (Code/and a image/Photo with click able buttons)
-Track Design in (generated Matrix or as a 3D Model)
the menu has been ok. but it`s Creating a track is ok butt when i make a track as a Matrix it be Clumby/Blocked and if i use a 3D model as a Track i get trubel with Colision and Folowing the Road Height. so if some one knows a way plees tell me.

ps i have imagined to try Create a Track as a 3D Modell
use it as static and then try to add Pollygone collision maby that help`s. butt then about slide-colision. i am nott soure

Stig Design (Free Games,Sources,Textures,Photo`s)
Lisence Free at http://StigDesign.piczo.com
Yodaman Jer
User Banned
Posted: 26th May 2008 03:50
Ummm....you HAVE to create something in either 2-D or 3-D. There is no in-between. DarkBASIC can only produce either 3-D or 2-D, not 1-D or 4-D (although a time machine function would be rather cool..)

But about a car game, hmm.....my advice would be get the physics as close to the real thing as possible. Handling a car in real life is a lot different than handling a car in-game, so it's better for the gamer to be comfortable if the controls are a little sensitive.

About collision detection, I've never figured out the polygon collision, I've never gotten it to work, so what I do is 'break up' the level into little boxes or triangular shapes and use the corresponding collision-based shape for the collision. Quite helpful.

Sliding collision is a topic discussed in the following tutorials which I highly recommend reading before you attempt something too difficult, or even before posting another question. Here's the link:

TDK's Tutorials

That's my advice, hope it's useful! Happy coding!


Original image by BigAdd
Stig Design Stig Magne
19
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 26th May 2008 03:58 Edited at: 26th May 2008 03:59
i have tested and got it done with sliding collision on hidden boxes on buldings and other stuff.

so i need to create several Boxe`s object with that collision in a turn on the track. i think

ps all things rest is ok. its that a track with right collision

Stig Design (Free Games,Sources,Textures,Photo`s)
Lisence Free at http://StigDesign.piczo.com

Login to post a reply

Server time is: 2025-06-05 21:26:01
Your offset time is: 2025-06-05 21:26:01