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.

2D All the way! / Pixel Perfect Collision

Author
Message
Dot Merix
20
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 17th Aug 2006 19:43
Havent been following 2d very closely, havent been programming with DBpro for a very long time due to it...

Have we gotten then -free- pixel perfect collision commands yet for 2d?

spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Aug 2006 20:02
Only if you get your wallet out and buy the eXtends plugin. Does full pixel perfect collision, even on scaled or rotated sprites.

Boo!
Kevin Picone
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 17th Aug 2006 22:30 Edited at: 28th Mar 2011 02:46
Or, for the price of extends you could buy PlayBasic which has it built in

Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 18th Aug 2006 18:58 Edited at: 18th Sep 2006 10:20
Try My application .
You scan an image through ,and pass the data in a file.
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 18th Aug 2006 21:59
That would be nice to see how you done it, can't find any way to download it.
Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 18th Aug 2006 23:25
Click Download with basic file factory...
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 20th Aug 2006 01:48
well here a pic. and no place to download your program. alot of other junk to download

Attachments

Login to view attachments
Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 20th Aug 2006 23:16 Edited at: 20th Aug 2006 23:24
click there.i logged out and tried it.
"Download for free with file factory basic."
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 21st Aug 2006 00:55
Thanks Prosaic I found it.
renny
Jack LOL
17
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card
Posted: 28th Aug 2006 01:10
I didnt really understood, how do i use the things i loaded??

lol?! xD
Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 31st Aug 2006 11:05 Edited at: 18th Sep 2006 16:44
Did you see the example?
the arrays are filled like this>>
000000011100000
000000111110000
022222111112220
000000111100000
where zero means no collision on that pixel.and any other number
represents an area.(which can also be named in arnam$(ob,na)).
EX:the size of the array is x100*y200.The object's first pixel is
at x23,y45.You check if another object (say a one pixel bullet) is b2IN (23-123)x and (45,245)y.if yes you refer to arrays position bulletx-23 bullety-45 .If you find zero no collision.If other you have collision.Its a bit heavy for the system , if you have to check between objects that exceed 50X50 size.


http://www.filefactory.com/dlf/f/4ad015/b/1/h/fa6c5bf617dc5afb
DarkMasta
18
Years of Service
User Offline
Joined: 21st Apr 2006
Location: Typed on your screen.
Posted: 18th Sep 2006 14:15
That's my problem too. I've been hoping by buying DBPro that I can circumvent this problem of inaccurate sprite collision (esp. when they are rotating). Well, DBPro actually HAS a vast manifoldness of advantages — but still, I have already decided to order the Enhancement Package. 'Hope that one can mend this problem.

Wherever you plan to go,
it's the next step you never know.
Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 18th Sep 2006 16:47
.yes.but in DB if theres a problem , theres a way round it , like in DarkMastas Avatar!!
Jack LOL
17
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card
Posted: 18th Sep 2006 17:52
Well there is amuch better way for perfect pixel collision which is fast and dont need any files:

http://forum.thegamecreators.com/?m=forum_view&t=86212&b=19

(forgive my english) lol?! xD
Prosaic
17
Years of Service
User Offline
Joined: 5th Aug 2006
Location: Athens
Posted: 18th Sep 2006 19:34 Edited at: 18th Sep 2006 19:34
aye.its better..its true...

Login to post a reply

Server time is: 2024-05-22 18:06:24
Your offset time is: 2024-05-22 18:06:24