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.

Newcomers DBPro Corner / What the heck is a bob?

Author
Message
Cairne
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: The Internet
Posted: 22nd Nov 2004 07:37
And why am I being told that my program wont work because a certain "Bob" isnt found... when I never mentioned a bob?

I use darkbasic classic and i practically have no experience.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Nov 2004 07:43
bob = sprite

"I am not young enough to know everything."
- Oscar Wilde
Cairne
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: The Internet
Posted: 22nd Nov 2004 07:49 Edited at: 22nd Nov 2004 07:59
Thanks, That really helps me very little, because I still dont know what to do, but I might know what the problem is.

(I would post my code, but its a mess that I dont want anyone to be going through anyway.)

(Edit: Went back over my code, found out I STILL dont know how to fix it, so I will post the problem code here... along with all code that it influences)

This is supposed to be a piece of a 2d Fighting game.

The Problem Code -


The Player 2 Version, which the Problem version happens to be a direct copy of (this one works for some reason)-


Player 1 And his Arm



Player 2 and his Arm


(Oh, and the Player2arm+21200... thats a little code I set up, since the fighters are supposed to be customizable, and each one has a different graphic per limb)

I use darkbasic classic and i practically have no experience.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Nov 2004 07:57
Obviously you're using a sprite somewhere. Without posting your code it's up to you to figure out where.

"I am not young enough to know everything."
- Oscar Wilde
Cairne
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: The Internet
Posted: 22nd Nov 2004 08:04 Edited at: 22nd Nov 2004 08:14
Uhh... sorry bout that, I was posting a rather lengthy edit and never read your reply. The edit includes all the code involved... I think...

(EDIT) Found the problem, turns out it wasn't registering sprites 5 and 6 because I hadnt made them yet, I made them after the problem code. Its fixed now, and I seriously doubt I could have figured it out without the help.

I use darkbasic classic and i practically have no experience.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 22nd Nov 2004 08:16
The most common cause of "bob/sprite does not exist" is when you do something like:

if sprite hit(4,5)

and, for example, sprite 5 doesn't exist / has not been created yet.

Are you sure that all of the sprites you are using in your sprite collision code have been previously defined? (via the sprite function).

Cheers,

Rich

"I am not young enough to know everything."
- Oscar Wilde
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Nov 2004 12:45
A guy with no arms and no legs and.... oh nevermind.

"eureka" - Archimedes
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Nov 2004 03:29
Why "bob"?
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 24th Nov 2004 03:33 Edited at: 24th Nov 2004 03:33
it stands for Bright Orange Buffoons

Part of solving the problem is actually noticing that the problem is there in the first place

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 24th Nov 2004 03:34
Is an abbreviation of BLOB (Blitter Object)

Walk softly... and carry a big gun...

Login to post a reply

Server time is: 2024-11-27 14:37:17
Your offset time is: 2024-11-27 14:37:17