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'm a Beginner to DarkBASIC

Author
Message
Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 23rd Jul 2007 11:54 Edited at: 24th Jul 2007 00:24
I just got DarkBASIC (the whole $30.00 boxkit) yesterday, and I didn't want to start until I asked a few questions.

I've been confused, and AM A TOTAL NEWB to programming, 3d ddesign, etc. I don't even know where to start. I got this game because I played Gears of War, and I wanted to make something like it, but with the DB program. Where should I start? I got a Programming Language User Manual, but I don't know what I should do. All I want to do is learn how to make an awesome FPS game.

If you fail at something, the best thing to do is ask yourself "would I give up on my goal, or would I resolve issues standing towards my goal?"
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 23rd Jul 2007 13:29 Edited at: 23rd Jul 2007 13:34


On a more helpful note:
We see a lot of threads like this. The basic meaning of them is "How do I make, like, an uber cool 1337 game with no programming knowldge and DBC?" The answer is: You won't. If you just bought DBC, don't even THINK about something like Gears of War. Start small, read TDK's tuts (at the top of the thread list somewhere, it's a sticky) and do something like space invaders. Or even better, something with numbers. Programming is immensely complicated.

Oh yeah, copy the above code into DBC.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 23rd Jul 2007 13:55
Thanks, and hey, I read your program into DB, and it was RED bold "practise" with no transparency.

I read TCK's (sp?) first tutorial. I understood more than half of it, but at the end, there was a practice quiz, and i've been at it for over an hour now! It's complicated and mind boggling.

by the way, what was the 'do' and 'loop' command supposed to do, because when i put it in DB, it read something like "syntax error. Cant do" or something. And 1 question, do you make games?
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 23rd Jul 2007 14:49
Did it? It should have repeated practise over and over again. (Do loop). What version of DB are you using: Classic or pro?
And yes, I make games. Rubbish games, and I've been at this programming lark for months.
Learning is a slow process...
What specifically are you having difficulty with on the tutorial?

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Nuklear Onslaught
19
Years of Service
User Offline
Joined: 27th Jun 2007
Location: England
Posted: 23rd Jul 2007 14:51
At least you're having a go at the tutorials. Quite a lot of n00bs just demand how they can make a game without listening to the helpful comments of everyone else.

I've been using DarkBASIC for about 5 years and i'm still learning. My advice is to start off small, learn the basic commands. Then turn it into a little mini-game, say you have to steer your cube away from an enemy cube to avoid collision. Then you can build on it and improve your skills.


Good luck

Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 23rd Jul 2007 15:48
Actually, the box that I got just says DarkBASIC 3D Games Creator..

Well, the tutorial goes smoothly as long as an example is usually included. I'm just kind of cought up on the 'If...then' parts on tutorial 1..for example, he days:

Input "please enter your name here: name$

I am kind of confused how the dollar symbol works. It's used to store strings in variables, but still confusing about where it is best to go. and instead of more exclamation marks at the end of the string, there is a colon instead of more Emarks. I know understanding the tutorials takes patience to develop your knowledge, but it's still rediculously confusing in few parts.
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 23rd Jul 2007 16:19 Edited at: 23rd Jul 2007 16:21
He is probably using classic,considering that this is the DBC board. But dude READ READ READ. You can read tutorials the manual. Study it ALL. Something I had to learn the hard way. DON'T Start out like I did on these forums. But I can guarantee you are NOT going to make a
game similar to Gears of War to start out with. Create something like PONG. Yes, Pong. Now I wish you the best of luck and kindest regards. Oh and here: (this should work).



Cheers,
Jordan

Greek freak
19
Years of Service
User Offline
Joined: 28th May 2007
Location: Greece
Posted: 23rd Jul 2007 16:45
Lol you want to make gears of war with your first try? You should consult yourself happy if you could make a pong game with the first try! It's like you want to paint like picasso from the first painting.
Start with the most easy games you can imagine (like pong), then go to shooter games,(but not complex like GOW,). Just remember: Gears of war needed a team of hunddred 3d professional designers and other people to make it so don't expect it to be that easy.

The problem is not if there isn't after-death-life. The problem is if there is no life in life!
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Jul 2007 20:44 Edited at: 23rd Jul 2007 20:50
Quote: "I am kind of confused how the dollar symbol works."


It's dead easy when you get the hang of it. It's actually covered in the tutorials, but they are quite big and it's easy to skip vital info when you first start. We want you to read boring tutorials whereas you want to start making a fantastic 3D game...

There are 2 basic variable types in DB Classic - Numeric and String.

There are two sub-type numeric variables - one to hold whole numbers (integers) like 100, 573 and 21873 and the other to hold decimal numbers (or 'floats') like 3.142, 22.663 and 1.99.

As a variable name can be pretty much what you want it to be, DB has to have a way to distinguish which of these types you want your variable to be.

It does this by having you add symbols on the end of the variable's name - the hash symbol (#) and the dollar sign ($).

Take the variable name 'Fred':

Fred = 100

In this situation no trailing symbol is used so Fred is an integer variable and can hold whole numbers.

Fred# = 100.0

In this situation, the # says Fred is a float variable and can hold decimal numbers. Notice that even with 100, you still have to add the .0 on the end.

Fred$ = "This is a string"

In this situation, the $ says Fred is a string variable and can hold alphanumeric characters, words and sentences. The quotes show DB where the string starts and ends.

In your example above, it would result in an error because you missed out the closing quotes and semi-colon:

Input "please enter your name here: name$

should be:

Input "please enter your name here: ";name$

Precision is absolutely vital in programming. Miss out a single full stop, comma or space and you'll get what's called a syntax error which roughly translates into "you've not typed something in right dummy!"

As for the quiz at the end of tutorial 1, don't waste too much time on it - just look at the answer at the start of tutorial 2 and see how much you can follow...

TDK_Man

Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 23rd Jul 2007 23:51
thanks for the newb help guys, and thanks for the heads up TDK. I guess the best thing to do for now is study, study, study. but I'll read and study over tutorial 1 for a while until I move onto part 2.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Jul 2007 00:06 Edited at: 24th Jul 2007 01:05
There are a load of tutorials to get you started included in DarkBASIC TDK's are good too and they will take you on further.
For now I would suggest forgetting about gears of war and even 3D stuff all together, just practice and experiment with each new command as you learn.

One of the most important things for a beginner to learn is how to set out your programs, and how to use commands properly and which commands work best for different actions.
There are many examples of good programming (along with some terrible) all over the site and I think TDK has some tips on presentation etc.

You'll find everyone here very helpful but also honest, just find out who are the better coders and try to learn from them, you learn fast that way!
Some noobs over use help though and it can be easy to get lazy, so when you run into a problem try to work it out yourself before asking.
Having said that you seem to be keen to learn and I can't see you getting noob slapped any time soon
keep up the studying

I am king of the noobs!
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Jul 2007 11:37
Quote: "Some noobs over use help though and it can be easy to get lazy"

Translation: GIVE ME DA CODEZ!
I know where that originated from now.
I completely agree with all who have posted here. My advice of fist attempt space invaders is probably a bit off.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 24th Jul 2007 12:56
so I'm still learning, and by the looks of it, it's getting complicated and more difficult to understand, but I know I'll see fit when I start to understand better. So INH, are you saying that I should start with something more basic than space invaders??

If you fail at something, the best thing to do is ask yourself "would I give up on my goal, or would I resolve issues standing towards my goal?"
Roxas
20
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 24th Jul 2007 16:10
U can also look our new growing community wikipedia Here:
http://www.DarkBIBLE.co.nr

[center]
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Jul 2007 18:24 Edited at: 24th Jul 2007 18:26
Quote: "So INH, are you saying that I should start with something more basic than space invaders??"

I think so, space invaders is a REAL GAME, it will be a while before you can make a good version of it.
The obligatory [PRINT "Hello World"] is a bit lame but I tried it anyway , I didn't know of the "Hello World" and my first ever program was [PRINT "Hello"] shows how predictable people are lol.

I'm guessing you want to make games, there are loads of simple games you can make just using a few commands. Guessing games are the first games I started making.
Try and write a program that will choose a random number and let the user try and guess it. You can expand on this idea quite a lot, you could add hints depending on your guess ("Lower" or "Higher")
After that you could try making a code breaking game etc.

I am king of the noobs!
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Jul 2007 18:45
Quote: "So INH, are you saying that I should start with something more basic than space invaders??"

Definately. Let's list all of the variables needed to make space invaders:
Has the player moved the spaceship, and which way? Has (s)he hit the sides of the screen?
Has he shot at the space invaders?
Is the bullet still in the air? (You cannot shoot multiple blasts)
Has he hit an invader?
Has an invader fired?
Has it hit the player?
Do the invaders need to move down?
Which way are the invaders going?
Do they need to speed up?
Has the protection been destroyed?
What is the player's score?
Has the player defeated all the invaders and do they nned to be repopulated?
What is the highest score?
etc...
The list goes on.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Jul 2007 19:34
And the variables for a guessing game:
The number
Your guess


I am king of the noobs!
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Jul 2007 20:25
Nope.
The number
Your guess
Is the guess outside the limit? (I.e "i am thinking of a number betwwen 1 and ten." "Uhh, 26?"
Does number=guess?
If yes, what should it say?
If no, what should it say?
Does the player want to play again?
Well technically some of those are calculations but details details.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Jul 2007 22:03
Yeh but they're not variables

I am king of the noobs!
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Jul 2007 23:33
No, but neither were most of my space invaders ones. They're more of "detections". My point remains the same.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
mido
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 25th Jul 2007 02:26
remember that it takes time for your mind to absorb all this information so don't get frustrated when you can't understand somthing
just come back a few days later and you'll find it is much easier to learn
for example when i first started learning programming the do,loop and the language basics was very hard to understand so i stoped for a couple of days and when i looked at them again it was soo easy for me to understand them and use them

the point is don't overwhelm yourself with lots of things at the same time, start with the basics until you get hang of them then move to the more complex commands

i am one of the bad things that happen to good people
Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 25th Jul 2007 02:30
Jordan!!! You're back! How are you doing?

Your Sniping Resident
18
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: United States
Posted: 25th Jul 2007 02:51
okay, I can see what you guys are saying. Anyways: I'm starting to understand how arrays work much more accurately. I didn't understand the example though:



I think it's just me, but I'm not really understanding what the command is saying.

If you fail at something, the best thing to do is ask yourself "would I give up on my goal, or would I resolve issues standing towards my goal?"
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jul 2007 03:06
Your code snippet is incorrect. It should say

print lottery$(t)

Have you read the description of arrays here:

http://forum.thegamecreators.com/?m=forum_view&t=96069&b=7&p=0

TDK_Man

Pixelator
18
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 25th Jul 2007 17:52 Edited at: 25th Jul 2007 17:54
Quote: "GIVE ME DA CODEZ!"


Not a good thread starter

The problem with the gaming community is people think that the resolution of a game defines how good it is. I am not afraid to make a game where the main character is 50x50.
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 25th Jul 2007 18:46
@Zombie 20: Alright. Tied with working on a new game. (Full 3d!)

Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 25th Jul 2007 20:58 Edited at: 25th Jul 2007 20:59
Quote: "Not a good thread starter"

No one ever started a thread with it, but they did post it second, after saying something like "I'm a genius. Tell me how to program darkbasic, it's too hard. I AM GOD!"

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 26th Jul 2007 11:25 Edited at: 26th Jul 2007 11:27
Quote: "I think it's just me, but I'm not really understanding what the command is saying."

Which command?
the loop is doing this


I am king of the noobs!
Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 28th Jul 2007 05:19
... "TDK*, not TCK", and "PRACTICE

Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 28th Jul 2007 19:57
Noooooooooooooo....... My Spelling!

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
Damokles
23
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 29th Jul 2007 15:39
Well, a guess-game is simple.

Right after that, I would suggest hangman ... which uses the same priniciple, but a bit more complex.

Then maybe "the weel of fortune", like the television show, which is hangman, but with a point system.

- Mind the gap -
tha_rami
20
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Netherlands
Posted: 29th Jul 2007 19:05
My tip: Try those basic things. Guess game. Text-game. Something basic 3D. Move on and then start doing something simple. A platformer or sumtin. Walk the cube to the end of the level avoiding other cubes.

Login to post a reply

Server time is: 2026-07-06 01:17:58
Your offset time is: 2026-07-06 01:17:58