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 / pure color sprite collision

Author
Message
ShadowCentaur 2
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Free Country USA
Posted: 1st Aug 2005 07:42
through bugs in a game i was making (2d) i have found that certain colors do not collide properly, especially primary and secondary colors. for example, my green (0,255,0) ship did sense collision with a magenta(255,0,255) powerup. the colors, since they have nothing in common, they pass right through each other. check out this lil' snippet i made to demonstrate the problem. this only really matters with pure color sprites, but its still a wierd bug. i just changed the colors by adding a little bit to the other colors to get around it. anyone else ever run into this?

Truth suffers from too much analysis.
-Ancient Fremen Saying
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 4th Aug 2005 22:08
Yah, thats strange, it does that with every color (that I have tested). As they say, DBC's 2d engine wasn't that developed. Or was it 3d? I can't remember anymore.

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 5th Aug 2005 00:05
No I've never run into this. When I use anything 2D, I use the make object plain command and then just texture it. I found that works better for colliding. And, I usually never color my stuff. That is weird though, so I'll try it to see if that happens to me 2.


__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 5th Aug 2005 01:49
yeah, but then thats still 3d, he means 2 dimentional 2d games

Your signature has been erased by a mod because it's larger than 600x120...
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 5th Aug 2005 05:19
I know, but you can give the effect of 2D using plains, and I believe the collision are more accurate, and you can pass of your game as 2D.

I don't see a problem with it. You can load the background like that, you can even make a 2D side-scrolling mario with the plains like I said.


__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk

Login to post a reply

Server time is: 2025-05-22 15:23:17
Your offset time is: 2025-05-22 15:23:17