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 / i need help with rpg, please help!

Author
Message
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 11th May 2004 02:00
ok, i've started a new rpg. I need some help with the scenery. i'm trying to make it a forest with a light drizzle of snow that is big enough for atleast one level. I want as much help as you can give(as much as the guy got who posted the forum "my frist ping pong game", tuo know, the one that had so much directions they changed it into one of the forums with a green arrow on it).
Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 11th May 2004 06:59
I saw a code for snow once on the in the 20 line challange. Try finding it.

Dont worry and keep a cool head.

GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 15th May 2004 01:34 Edited at: 15th May 2004 01:37
It's not easy to get a topic to be stickied. And people arn't going to write a page of directions just because you ask them... but, I'll try to help you out anyways...

First... If you want to make an RPG, you will have to know how to use the Matrix commands...



Then you will have to make a player to walk around the matrix. This can be a 3-D object or just the camera. I'd recommend a camera if you don't have any animated 3DModels on hand...



You can think of the camera as an invisible eye used to view your scene. The camera can be positioned, rotated, and moved much like any 3D object.

Now, you will have to be able to "move" the camera around the matrix...


Position Camera Camera Position X(),Get Ground Height(1,Camera Position X(),Camera Position Z())+5,Camera Position Z() ...will allow the camera to move along the surface of the matrix as if it were walking on ground...

Thats all I have Time for... Well... I hope I helped...

PS: I was not the one to write these tutorials but they helped me alot when I was new... I would like to thank whoever wrote these.

Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 15th May 2004 01:54
Personally I cant stand using a matrix. Thats why I never do, however, it is a very good place to start.

Infra-Dark
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 18th May 2004 03:44 Edited at: 18th May 2004 05:16
Ok... My first post was a little complex... I'll try to make a step-by-step tutorial to help you and any other newcomers out...



Here is an example ground/matrix texture...


Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 18th May 2004 03:48 Edited at: 18th May 2004 05:17
After you understand all of the above code, replace it with this code...



I'm going to keep posting updates as I complete them, so MODS don't be surprised if this post keeps comeing back from the graveyard until I have a basic RPG in place...

Here is a low quality sky image...


Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 18th May 2004 09:02
Quote: "Personally I cant stand using a matrix. Thats why I never do, however, it is a very good place to start."


I've tested it, and a matrix is faster than it's equivalent of triangles (Not plains because you would have to use memblocks to manipulate plains). Most of the time, matrices are the only way to go, especially when it comes to terrain.

doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 21st May 2004 16:23
thanks for the help guys! I appreciate you helpin, you don't have to help anymore.
Chaos
22
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st May 2004 16:29
@arkheii : I have to disagree with you there. Matrixes are very slow in DBC when compared with pro and even then i wouldn't use them. Using objects and memblocks gives a speed increase with optimized code.

Chaos


[center] New Project announcment coming soon[center]
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 21st May 2004 18:28 Edited at: 21st May 2004 18:31
@Chaos: Eh? I was talking about enhanced. I had an idea about making a matrix out of tris, and it turned out slower than a matrix. A matrix also loads faster. Of course, this is a physically small 70*70 matrix and tris matrix so all the 70*70*2 polys are visible. It's also much easier to edit and normalize a matrix because you don't have to screw around with the memblock commands. Updating a mesh from a memblock also takes up some time.

edit: I actually did those because I wanted to see if I could increase performance by culling matrix polys using static objects. Since I can't cull the matrix, I replaced it with tris.

Login to post a reply

Server time is: 2025-05-24 08:26:06
Your offset time is: 2025-05-24 08:26:06