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 / Sprite problem.

Author
Message
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 11th May 2003 18:02
Just got DBPron and must say, I'm bloody impressed !
Starting very small though.
Got a 1 screen space invaders screen working.

Now I'm attempting a platformer.
Although it's going quite well I am having a problem with sprites.

My sprites appear to be colliding with the invisible box around the sprite.

You know when you cut your sprite from the bitmap, the black background.

It's invisible in the game but still appears to be colliding.
Is there a way around this ?

Total newbie question and I'll probably kick myself but any help would be great.

Cheers.
Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th May 2003 19:40
I don't use sprites much myself, but I guess the answer is that the engine doesn't care whether a pixel is transparent or not, it's still part of the sprite and it will still collide.

Thanks in advance.
All the Best,
StevieVee
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 11th May 2003 20:16
I once did a pixel perfect collision function - but because it used GET IMAGE it was way to slow to be of any practical use

If you can catch IanM, he wrote a function that aint slow and so did someone else (i can't remember the someone elses name)
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th May 2003 22:09
It was freddix - his worked with both 16bit and 32bit images.

Mine was co-written with ChipOne and handles 32 bit images only - but it's a lot faster. It's attached.
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 12th May 2003 00:47
Cheers guys, I'll give that a look over.
This is my first attempt at a basic language so I don't really have a scobby what's going on yet. LOL

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk

Login to post a reply

Server time is: 2024-09-20 07:52:05
Your offset time is: 2024-09-20 07:52:05