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.

Dark GDK / 2D Per Pixel Collisions?

Author
Message
John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 3rd Jan 2008 02:25
Is there an easy/already created way to get per pixel collisions with the GDK that doesn't involve buying the eXtends?

I've found examples for Dark Basic, and some for 3D, but nothing for 2D pixel collisions.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 3rd Jan 2008 17:07
You didn't give us much detail... I thought Sprite Collision were 2D - pixel perfect. Have you tried this? Is it Pixel Perfect?

John Goewert
16
Years of Service
User Offline
Joined: 1st Jan 2008
Location: Cornfield, MO
Posted: 4th Jan 2008 00:59
Good sprite collisions are per pixel, though, Dark GDK by default appears to be using bounding boxes only for both its dbSpriteHit/dbSpriteCollision.

Something like this is the basic but doesn't include rotational or scaled sprites.

http://www.ziggyware.com/readarticle.php?article_id=48

I figure I can make my own, but was hoping one was already done as it seems kind of a basic function for a 2d game making tool.

Login to post a reply

Server time is: 2024-11-19 23:24:31
Your offset time is: 2024-11-19 23:24:31