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 / Bob does not exist

Author
Message
Penfold
21
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 16th Jan 2004 23:57
I've checked the forum and found a couple of posts which didn't help much

Error Bob does not exist

I've just added one line of code to get this error

IF SPRITE HIT(N,0) > 0

Yes, its in a loop and n is the loop ID

I have no idea why this happening.. other than the fact I'm positioning the carrier sprite under another sprite.?
although I wouldn't think this would affect it as I'm only checking for a collision.. besides the fact that the carrier sprite actually gets to move a couple of times before an error nowhere near another sprite.

can anyone explain the error?

Ok so its not a mouse.
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Jan 2004 03:05
bob is another name for sprite. There's a whole list of bob commands, but they aren't listed in the help file. No need too, since they're all the same as the sprite commands.

"eureka" - Archimedes
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 17th Jan 2004 10:44
it means that sprite "n" doesn't exist... you have to create it or put a check before it, so
if sprite exist(n)
<check sprite collision>
endif


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Penfold
21
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 17th Jan 2004 15:45
thanx red eye will include update my code....

Ok so its not a mouse.

Login to post a reply

Server time is: 2025-05-22 15:16:36
Your offset time is: 2025-05-22 15:16:36