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 / Tutorial Question

Author
Message
Armeggadon
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location: United States
Posted: 10th Apr 2003 19:24
in the tutorial at the darkbasic website i followed the directions and everything but i have one problem. for some reason in the

Rem Make bullet
Make object sphere 2,2
Hide object 2

make object sphere 2,2 is messing up the code. when i take it out the program runs but when i put it back in i keep getting the error

Error at line 110. Object already exists.

but when i look at it it keeps highlighting the loop command at the end. i just got darkBASIC and i dont know why ths happens or what to do to fix this plz help. thx
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Apr 2003 19:38
Hi

it means that Object 2 already exists. Try changing the object number. All different object types use the same numbering system.

Thanks in advance.
All the Best,
StevieVee
Armeggadon
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location: United States
Posted: 10th Apr 2003 19:56 Edited at: 10th Apr 2003 19:57
ooooooooooooooooh. ok thx. im sure ill be back here later with me being so new to db. thx. wait though how do i know what object it is????

Kentaree
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 10th Apr 2003 21:04
You loaded an object using load object fileName$,2
and later on you try to make another object 2 using make object sphere 2, radius. This means the two overlap, change one of them.

Whatever I did I didn't do it!
Armeggadon
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location: United States
Posted: 10th Apr 2003 21:07
ok. could someone please post the entire tutorial document. i need something to compare mine too becasue mine isn't quite right for some reason. thx

koolaid
23
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 11th Apr 2003 05:32
isnt that tuturial in the book db came with thats the part where you make the weapon and bullet right?
Armeggadon
23
Years of Service
User Offline
Joined: 10th Apr 2003
Location: United States
Posted: 11th Apr 2003 16:31
i dont have the book. i got the Game Programer starter kit that had DB lite in it. im using lite rite now. i can save as a .dba just not as a .exe once i get better i'll upgrade.

this is my sig. no special FX or anything but oh well. casue im plain and this is my sig. *YAWN*
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Apr 2003 17:20
My recommendation...

Amazon.co.uk - DarkBasic + DarkMatter (includes DB Expansion) £24.99

You get all the sample code, more examples...and tutorials...and more examples.

Did I mention the examples?

Thanks in advance.
All the Best,
StevieVee

Login to post a reply

Server time is: 2026-06-13 14:16:47
Your offset time is: 2026-06-13 14:16:47