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 / Syntax Error! (Don't ya just hate them?)

Author
Message
r333
19
Years of Service
User Offline
Joined: 18th Jul 2005
Location:
Posted: 1st Aug 2005 23:30
Small problem. This is the source for a game I'm making, but it givers me the same error Stora Tomtefar had. It highlights my loop as a compiler error and says an object does not exist. Help please...



Thanks...

Thanks!(for..whatever it is you did...)
Stora tomtefar
20
Years of Service
User Offline
Joined: 15th Mar 2005
Location: Göteborg, Sweden
Posted: 1st Aug 2005 23:58
Ok, i tried to use your code, but i made cubes instead for your loaded objects, and it worked...
I think the error is that your objects actually don't exist, or that you've misspelled something...

I think that my problem was that I made something with an object before it was created, as in

Texture object 10,10
Make object cube 10,10

But I see that that isn't your problem

"Even though I'm ugly, I'm extreamly sexy!"
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 2nd Aug 2005 02:12
I just figured this same problem out a while ago. DBC is really finnicky in just about every aspect of anything. One of these many things it is finnicky about is negative numbers, sometimes it works and sometimes it doesn't. There is one surefire way to always make it work though.
Change
"if downkey() =1 then move camera -10"
to
"if downkey() =1 then move camera 0-10"

It will calculate it, and won't get angry about a minus sign in the middle of nowhere.


I'm going to eat you!

Login to post a reply

Server time is: 2025-05-22 17:37:45
Your offset time is: 2025-05-22 17:37:45