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 / Im new and need help

Author
Message
LavaBall
19
Years of Service
User Offline
Joined: 12th Jul 2005
Location: Malta
Posted: 12th Jul 2005 21:25
Hi i need help on how to learn coding so i can make a game on DarkBasic
I want to make a third person but i know absolutly no coding but i want to start so any help?

Living PolterGeist!
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 12th Jul 2005 22:16
the keyword is "tutorial"
http://darkbasic.thegamecreators.com/?f=tutorials

Don't look at my sig!
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 12th Jul 2005 23:42
Also, consider posting in the 'Newcomers Corner' rather than here.

They get a lot of this kind of thing there, and so are....better at handling it.

How's my typing? Phone 0800-GO-TO-HELL
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 13th Jul 2005 07:39 Edited at: 13th Jul 2005 07:50
Quote: "
Also, consider posting in the 'Newcomers Corner' rather than here.

They get a lot of this kind of thing there, and so are....better at handling it.
"


Hahaha I like how you paused there.

LavaBall one of the first things you need to learn is you're not going to make a third person game right away. Nobody is going to show you how to do that if you've never wrote code before. Always start small... make a text adventure... or as everybody says... pong. Learning to write code is a long process and requires being patient. Slowly you'll learn new commands to use and eventually you will make the next biggest third person game. If you try to learn that right away chances are you'll just get mad and quit programming... which is VERY BAD! There are tutorials you can look at and code to play with... but programming won't come to you instantly.
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Jul 2005 10:01
Yeah, I agree, when I first got DB I tried making a huge 3rd person game with sword fights and everything, and I overlooked every problem... after about 3 months of making it I managed to move a cube around on a matrix, now after making little arcade games, like pong and this thing that I call 'Nukeball' I could make what I made ages ago in about 5 minutes.

Personally I think you should learn how to:
create objects
learn to move them
muck around with the camera
find out a little about main loops, etc..

but, if your so enthusiastic about making a 3rd person then heres a pice of code for you (I havent tested it, it's just out of the top of my mind, but i think it should work)



ok, most people would find this thing simple, and thats why i could just code it out there and know it works without having to test it, but when you look at it, you wouldnt know what to make of it right? well you can ask me what it all means, and i would tell you, but personally i think you should be asking me how to make a pong game, then you'd get much further.. it's up to you though..

Your signature has been erased by a mod because it's larger than 600x120...
LavaBall
19
Years of Service
User Offline
Joined: 12th Jul 2005
Location: Malta
Posted: 13th Jul 2005 17:11
Would it be necessery if i buy the Book of gamecreator's about Dark Basic
Does it help me coding and etc......Or i need coding skills to understand that Book?

Living PolterGeist!
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 15th Jul 2005 20:07
That book basically IS a tutorial, albeit a very pretty one with lots of pages and a CD. The book is designed to teach you DarkBASIC, not programming, although it starts of at a very low level (so you should find it easy).

If this is your first programming language EVAR, then it may take a bit of time to accomplish even the simplest things - This is unbelievably normal, so don't worry about it.

It's important to know things like a 'string' is basically a 'string of text', and all writing has to be enclosed like this:

"Text"

Then, you've got things like variables. If you've done algebra, then think of it kind of like that. So you could do things like:

x=3

If 'x' doesn't already exist, then it's created on the spot. Now, whenever you or a function asks for the value of 'x', it gets 3 (if you haven't changed it to something else.)

Variables, unlike algebra variables, can have more than one character making up their name:

MyVariable=4

The greatest thing about variables, is that eventually you can do things like this:

` This is a comment. Use comments
` to give your code readability for the poor people
`who don't know what you're trying to do.

`The 'print' command is a very simple way of 'printing'
`text to the screen. So:
print "Welcome to my multiplying program!"

---------------------------------------

---------------------------------------

` The 'input' command gets input from the user.
` You GET the input when they hit 'Enter' after typing.
`(My variables here are called Bob, Jim, and Jane just
` to demonstrate that you can call them ANYTHING
` (that starts with a letter.))
input "Enter the first number: ",Bob
input "Enter the second number: ",Jim
`Multiply them together!
`In programming languages, you use '*' instead of the 'x' sign.
Jane=Bob*Jim
print "The first number times the second number equals:"
print Jane

`In DarkBASIC, waits for the user to hit another key before
`continuing
wait key
`Stop the program.
end

----------------------------------

Okay, so what's the actual outcome of the program?

(The keys I pressed (when prompted) were 31 and Enter, followed by 24 and Enter. Everything else our program did )


(Step1: Entering first number)


(Step2: Entering second number)


(Step3: Processing & getting results)


If you've got DarkBASIC, Copy and Paste the code into DarkBASIC and it'll work


IF that seems too complicated, all the code boils down to is this:
Quote: "
input "Enter first number: ",Bob
input "Enter second number: ",Jim
Jane=Bob*Jim
print "Result: "
print Jane
"


An important thing to understand is that Bob, Jim and Jane are numbers.

So, if Bob was 21 and Jim was 24, then Bob+Jim would be 45.

Now, variables can be turned into text via the '$' trailing character.

So, we could have Bob$, Jim$ and Jane$.

Because they are now strings (text), we CANNOT assign numbers to them, OR treat them like numbers.

With strings, you can do:

Bob$="Hello! "
Jim$="Text testing program"
Jane$=Bob$+Jim$
print Jane$



(Note: 'input' can do strings, too.
Input "Enter writing: ",Bob$
Jim$=" SAMPLE"
Jane$=Bob$+Jim$
print Jane$)

Damn, I've written a bloody tutorial... Again....

How's my typing? Phone 0800-GO-TO-HELL
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 19th Jul 2005 05:56
Hi there
If you want, I could teach you a lot on DB and programming but it's going to take time and patience and I can't do it all in one go. Please tell me if you are interested.

HelloWorld Tommorrow

Login to post a reply

Server time is: 2025-05-22 19:49:45
Your offset time is: 2025-05-22 19:49:45