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 / how to start DarkBasic

Author
Message
luffy
19
Years of Service
User Offline
Joined: 5th Mar 2006
Location:
Posted: 5th Mar 2006 21:31
I just bought 3D games creator and I can't get it to work.
i can type in print "hello world" but when it gets to loop i have no idea how to do it.
could someone please tell me how i could finish this stage
Alien 001
19
Years of Service
User Offline
Joined: 4th Jul 2005
Location: Gateshead UK
Posted: 6th Mar 2006 13:27
You mean a hello world demo. If so check out the code in this post. It should help you. There are Other ways that you can do it. But i have not time wright now to tell you.

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 6th Mar 2006 17:03
Right alien

you can also use

sync on
sync rate (number from 0 to 1000)

and

hide mouse (I think I dont have to explain this command)


or here is an other simple tutorial:


rem this will print "Hello World" 10 times on your screen


sync on
sync rate 0

number=0

do

number=number+1

if number<10 then print "Hello World!"




sync
loop

[/center]
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 6th Mar 2006 17:47 Edited at: 6th Mar 2006 17:47


?

-The Nerd

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 6th Mar 2006 18:21
actually Jack, that will print Hello World 9 times. man you r suck! i r make gmae!! (no offence)

HorizShootiz progress 96%
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 6th Mar 2006 18:57
Quote: "rem this will print "Hello World" 10 times on your screen


sync on
sync rate 0

number=0

do

number=number+1

if number<10 then print "Hello World!"




sync
loop
"

1. What's with all the blank lines
2. This is better:


Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 6th Mar 2006 19:18
i want to post one too



HorizShootiz progress 96%
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 6th Mar 2006 20:39
Quote: "
#CONSTANT PRINTDAMMIT text rnd(640), rnd(480),

do

PRINTDAMMIT "yea im THAT cool!!1"

sync:loop
"


Unfortunately, doesn't work in Dark Basic...
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 6th Mar 2006 20:43 Edited at: 6th Mar 2006 20:43
Lets go 3D.




luffy
19
Years of Service
User Offline
Joined: 5th Mar 2006
Location:
Posted: 7th Mar 2006 04:29
Man, I've tried every code in it and it doesn't seem to recognise what I'm typing.
I get the same commands, its either syntax error, nesting error, or unrecognized parameter.
I strted doing as the tutorial says with just: print "hello world" and it does that. Anything else I put in its comes up with the errors.
do
print "hello world"
loop
comes up with wrong parameters and your codes but its not accepting them. Is it my PC?
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 7th Mar 2006 18:47
Lets go l33t.



HorizShootiz progress 96%
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Mar 2006 07:06 Edited at: 8th Mar 2006 07:07
@ luffy

Post in code snips some of the code that give you errors and we'll tell you why you're getting the errors and how to fix it. Post them in this thread.

To make code snips do this:
[ code ]
Your code here.
[ /code ]

Just remove the spaces between the brackets and we see this:



@ Lukas W

That's cool.


The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Mar 2006 07:29
You should defenately try to reinstall DarkBasic.

-The Nerd

Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 8th Mar 2006 11:18
well, if everyone is getting in on this, then i may as well make a contribution...


I am a Christian and I know that God loves me. That is what makes my life so great!
Okashira
19
Years of Service
User Offline
Joined: 8th Feb 2006
Location: Right here.
Posted: 8th Mar 2006 23:30
Here...

Let the games begin!
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 9th Mar 2006 10:04 Edited at: 10th Mar 2006 14:28
how boring!

lol

I am a Christian and I know that God loves me. That is what makes my life so great!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Mar 2006 19:25
@ Okashira

You need to post code in code snips.


luffy
19
Years of Service
User Offline
Joined: 5th Mar 2006
Location:
Posted: 13th Mar 2006 04:54
I know this is a noob question but do you have to use the enter key to move to the next line?
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 14th Mar 2006 10:52
Yes. Darkbasic isn't cool like C or C++
cout << "itdoesn't let you"; cin >> urmom; cout << "go on a single line with a single character termination thing";

set display mode 1280,1024, 32
cls
sync on
sync rate 0
spaghetticode:
for i=0 to 99
print "Error obtaining Source Code, invalid ID. Sorry but I've given up."
next i
goto spaghetticode
end


Rofl.


I'm going to eat you!
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 14th Mar 2006 10:57
what you totally lost me there

I am a Christian and I know that God loves me. That is what makes my life so great!
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 15th Mar 2006 12:11 Edited at: 15th Mar 2006 12:12
this sucks:


HorizShootiz - finished
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 15th Mar 2006 12:53 Edited at: 15th Mar 2006 22:38
How to jam your machine up if you're still using windows 9x or ME

sync on
sync rate 0
set display mode 1024,768,16
disable escapekey
disable systemkeys
do
inc RatherPointlessVariable
loop
RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 15th Mar 2006 21:41


...rawr.

Halo Man
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 26th Mar 2006 04:44 Edited at: 26th Mar 2006 04:45
DBP Only



Chicago Rush Website: http://chicagorush.servegame.com/
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 27th Mar 2006 10:24


Login to post a reply

Server time is: 2025-05-23 19:12:35
Your offset time is: 2025-05-23 19:12:35