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 / Dragon sim

Author
Message
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 11th Sep 2005 17:32
hello i recently got this code from a friend and i have edited it a lil but i would like some1 2 help

i want to add a big matrix in for the person fly around
how do i do this step by step ?



thanxs

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 11th Sep 2005 18:19
use Mat Edit by TDK man. very good and just writing the dba code also adds a flying code.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 11th Sep 2005 20:38
have u got the link for that mat Edit ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
General Sephiro
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location:
Posted: 11th Sep 2005 23:48 Edited at: 11th Sep 2005 23:48
All you had to do was look in showcase... / or even googled it

http://darkbasic.thegamecreators.com/?m=showcase_view&i=84 <-- you can still download it from here

http://www.matedit.com/ <-- i think thats still under construction though

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 13th Sep 2005 01:41
yea its very nice.
can you believe it was done in darkBASIC?

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Sep 2005 05:44
What version of MatEdit are you guys using?

The version downloaded from the Gallery is quite old - 1.6b I think.

If you are using that version, then I could dig out an update and make it available for you to download.

TDK_Man

Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 13th Sep 2005 22:06
so ok wat do i do with matedit once i have it ?

and if i wanted to make a moving sprite instead of just cubes wat do i have to do



-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 14th Sep 2005 02:39
@TDK i think i have that version

@Eray you install it first. mat edit is a matrix editor program. you make outdoor levels for ur games in a matrix. to help you get started, hit space when you start and select texturing the matrix. click on "texture enitre matrix" and then after, go back to the menu and select randomise matrix. then hit the menu again and select "write .dba code". go to the program file where matedit is installed and pick open the code in darkbasic (or any IDE you prefer that uses darkbasic), compile it, and voilà! your own matrix to fly around

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 14th Sep 2005 19:25
ok cool ill download it and play around but wat do i just save it in my mypro file ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 14th Sep 2005 21:17
lol i think i got a bad file it keeps going wrong will any of u make me a quick mountiney area that i can fly around for now would most apritiate it

Xx

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 15th Sep 2005 04:16
umm yea i have one but
@TDK what are the different files used for?
i mean like what is the difference between .MA0, .MBK, and .MMF

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Sep 2005 19:09
Silent Knight:

All the formats are explained at the end of the text file (in the Docs folder).

MAO is the file which only loads into MatEdit. You keep that.

MDF is the one that you supply with your programs. That can't be loaded into anything so no-one can easily steal your matrix.

MBK is a backup created when you save the MA0.

MMF is a Monster Matrix File. MatEdit has many modes, so you have to check the docs - if you don't then you are probably unaware of 50% of what it can do!

TDK_Man

Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 15th Sep 2005 19:14
would you mind if i can use your mountain map to fly around ?

untill i make my own

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Sep 2005 19:17
Quote: "would you mind if i can use your mountain map to fly around ?"


Sure - feel free...

TDK_Man

Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 15th Sep 2005 19:46
hmmm where is it ? is it in the file or can u send it or wat ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 16th Sep 2005 01:13
here is the .MA0 file for a mountain

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software

Attachments

Login to view attachments
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 16th Sep 2005 01:14
and here is the .bmp with textures

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software

Attachments

Login to view attachments
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 16th Sep 2005 20:01
ok that looks good thanxs

ok now wat do i have to do ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Sep 2005 20:15
Come on Eray you need to make a bit of an effort yourself you know...

Quote: "ok now wat do i have to do ?"


That's not exactly the best of questions to ask now is it? Do about what for heavens sake? Use the MA0 file? Use MatEdit? What?

Try to be a bit more specific with your questions so we know what you are talking about.

If you are talking about how to use MatEdit, look in the Docs folder and read the instruction text file you will find in there. It will tell you what MatEdit will do, and how to do it.

TDK_Man

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 17th Sep 2005 00:44
lol down boy.

Eray, you simply make the matrix into a dba file. then load it into your program using a #include command.

Oh and by the way, i made that matrix by going into the matrix paint and select "texture whole matrix" with the mossy.bmp, then i went and selected "randomise matrix" with a factor of 7500, then i went back into painting matrix and selected the snow.bmp texture and selected "texture all tiles above height with this texture" and the height was 7000. Then i saved and went into the program file and uploaded it on the forum.

Thats how easy it is to use Mat Edit.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 18th Sep 2005 14:06
ok wat is the inclide code ? and all i have to do is put the newly made map in the file

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Sep 2005 17:16
Silent Knight:

OK, I'll leave this with you then shall I?

BTW: You might need to explain quite a lot by the sound of it as he has no idea how to use DB, doesn't really want to know (would rather you give him the code to paste into his program), and has no intention of reading anything that would tell him what to do - including help files, documentation or tutorials!

Good luck!

TDK_Man

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 18th Sep 2005 21:52
@TDK it just sounded like you were getting mad. sorry if i was being a n00b about it.

anyway, @eray open the .dba file and make that into a subroutine in your program. Oh and if i were you, before asking much more, look up matrix commands in the examples part of DB help.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 19th Sep 2005 18:55
ok b4 any one kills any one or me

ive done it i have the matrix

now can some1 plz explain colisions (floor)

ow i also added some lighting from the camara to give the flying box more tone

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 20th Sep 2005 01:26 Edited at: 20th Sep 2005 01:27
yea lets see to explain collisions....
http://developer.thegamecreators.com/?f=t01/3d_tutorial_5

try that

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 22nd Sep 2005 18:11
ok ive read that and tried to apply it to my code but its not going to well ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Sep 2005 02:55
Quote: " @TDK it just sounded like you were getting mad. sorry if i was being a n00b about it."


Sorry if I sounded like I was getting mad - that wasn't the case. I admit that if it sounded like my comments were aimed at you, (which they weren't), I could have worded it better!

I was just pointing out that occasionally you need to remind the person asking the questions that they have to put a bit of work in as well. As you were answering the questions I was just letting you know that you shouldn't hand it to Eray on a plate - it won't help him in the longrun.

When I started with DB and I was asking the questions, had I asked the same initial question and been given the answer "try MatEdit", I would have searched for it, (rather than just said "where is it?", downloaded it, read the docs and learnt how to use it - not just installed it and said "now what"?

Had I posted that and been told 'click this', 'press that' and so on, I would have done what I wanted, but not learnt a damn thing!

In fact I wouldn't really have wanted that - and I don't think Eray does either, IF he wants to really learn how to program with DB.

It's much better for a newbie to be told how to do something and then have to go away and figure something out for themselves. That way they are learning something. Many newcomers want you to spell it out for them with code that they can copy and paste into their own programs.

I don't have a lot of time for this sort of user as you can waste an awful lot of time on them. So, you need to find out if they are willing to help themselves as soon as possible.

Don't get me wrong, I'm not saying Eray is like that and as soon as I decide that he's genuine I'll certainly help all I can. That's why I didn't give a step by step list of what to do. I wanted to see if he could go away and figure a few things out on his own rather than have it spelled out to him.

Documentation, the help files and the many good tutorials available on these forums answer most, if not all of his questions and a little bit of effort would have found the answers.

In your most recent reply, you pointed him to a tutorial to show him about collision, to which he replied "ok ive read that and tried to apply it to my code but its not going to well ?"

Had he read that page and understood it, I would have expected a somewhat different reply along the lines of "when I do X with object 11, I don't know why I'm getting zero when it should be 11"?

To me, reading between the lines, it says "I glanced at that page, but I couldn't really be arsed actually reading it. Tell me what to do now"!

Eras:

I'm not getting at you at all - most newcomers think that DB is much easier than it actually is and that they can get away without learning anything. Sadly that's not true.

There are a lot of very clever programmers on these forums - many a lot smarter than me and Silent Knight, but the majority of them are only going to help people willing to help themselves.

You just need to prove to us that you are prepared to put a bit of work in yourself and learn a few things. If you do, you'll get all the help you need!

I'm not trying to put you off, scare you away or be nasty. I'm just spelling out the facts. You show you are prepared to put a bit of effort into it and we'll help you when you get stuck.

But, make your questions sound like you've at least tried to solve the problem first!

TDK_Man

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 24th Sep 2005 01:12
Quote: "
There are a lot of very clever programmers on these forums - many a lot smarter than me and Silent Knight
"

lol i bet 95% of the other programmers are a lot smarter than me.
i was almsot like eray not too long ago i browsed for complete tutorials and just changed some of the factors. I would often read the tutorials on the TGC site and not understand entirely what i have just read.


But besides that, before i got serious into programming (i still cant program a decent game worth anything) i found it easy to use Mat Edit.

@Eray a few of my last suggestions will be for you sim is to
-be in 3rd person
-have a continuos movement where you are always moving (unlike the preview code when u compile your matrix)
-have cities to burn and rival dragons
-have a fire meter so you have limited fire power

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 24th Sep 2005 20:12
can some1 just help with the floor and mayb a limit to where u can go and then ill go away

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Sep 2005 20:51
No-one wants you to "go away" - just try a bit on your own before asking for help.

You already have MatEdit right?

Have you read the text file in the Docs folder? That explains how to use it.

Have you loaded the example demos that come with MatEdit?

If you had, you would have seen the comments which tell you how to use your own MatEdit matrix in them. Look at the Candyland demo.

You already have all the info you need to create a floor. You just need to go and look at it.

Once you have that working, come back and we can tell you how to limit movement - but that's in the docs too!

TDK_Man

Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 24th Sep 2005 21:25
ok i willl do

silnet knight good ideas by the way

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 25th Sep 2005 01:04
yes im Silent Knight and i can usually come up with lots of ideas. look for me on the Game Design Theory board.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 25th Sep 2005 14:30
ok can we now talk about how to make a dragon sprite ? that moves flaping its wings ? is there a program or can it be done in DB ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Sep 2005 17:27
New topic - new thread!

(People who can actually be bothered using the search facility looking to find info on doing the same thing won't find anything if you tag your question on to a post about something else).

TDK_Man

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 25th Sep 2005 21:27
i suggest going under the "2D all the way" board for what you are looking for.
Why dont you break this project down into the different components?
Plus so far all the code that you have is a green cross that moves above a matrix.

also:
I have a feeling that you do not know what a sprite is. In the code you posted its a 3d cross, why dont you stick with your idea of a 3d dragon? A sprite is 2d.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 26th Sep 2005 21:40 Edited at: 26th Sep 2005 21:42
no as in a sprite that raps round the 3d mesh ?? and i no all about sprites thats what im most good at

[EDIT]
now i rember its a model XD for 3d

ok new fourm then

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 27th Sep 2005 01:35 Edited at: 27th Sep 2005 01:36
um i still dont think you know what a sprite is.
I think you are looking for something called a texture. A sprite will do you no good.
A sprite is a representation of something 2 dimensionally, and a texture is what covers 3d objects.

edit: not everything that is 2d is called a sprite.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Eray
19
Years of Service
User Offline
Joined: 26th Apr 2005
Location: United Kingdom
Posted: 27th Sep 2005 20:07
ok ok i didnt no if it was the same for 3d but diffently know what a 2D sprite is cause i make them [href]www.kinggamers.co.uk[/href]

ok ok where do i get a dragon modal from ?

-_-~*^%"£$^$_-_-www.kinggamers.co.uk-_-~*^%"£$^$_-_-
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Sep 2005 20:11
I think I've seen a free one at 3D Cafe. Try Google.

TDK_Man

Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 28th Sep 2005 00:43
grr we are going off topic again
a sprite is like a 2-d animation, where you have several frames that represent different stages of the 2d moving.

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Matinuker
20
Years of Service
User Offline
Joined: 25th Mar 2004
Location:
Posted: 8th Oct 2005 22:57
Can't a sprite just be a non-moving image?
I use them like that.

Hmmmmmmmmm...................
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 9th Oct 2005 02:28
well yea but then it woulnt't be a "sprite" it would be an "image"

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Oct 2005 04:39
Quote: "Can't a sprite just be a non-moving image"


It depends what he means here SK - he might mean that the pixels on the image aren't moving (non-animated) - not the image itself over the screen.

Technically a sprite is an image, but with extra commands associated with it. But the whole point is that it's moving. Like SK says, if a sprite isn't moving it's just an image!

For example, when you move an image around the screen, you have to manually replace the background as it moves. If you use a sprite, then DB does that automatically.

Also, you also have to check screen locations to see if images overlap, whereas sprites have collision. And with sprites, you also have frames of animation.

But, if I have understood you correctly, yes you can use an image instead of a sprite if you want to.

TDK_Man

Login to post a reply

Server time is: 2024-11-27 16:57:45
Your offset time is: 2024-11-27 16:57:45