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 Professional Discussion / ¡Sprite Collision es No Bueno!

Author
Message
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 8th Oct 2015 02:53

Welll... I have forgotten how to DarkBasic, or why.
I wanted to use a skinny sprite to detect other sprites, but the collision is not what I expected.

What is the medicine for this?
Forgive my rudimentary code, but why is the collision so far off here?
Lemme guess, I gotta use a plugin, right?

Which emojiclowns must I paste upon the message boards of your minds to garner a little sympathy here?



WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 8th Oct 2015 07:09
This is because, Sprite 1's bounding box is overlapping sprite 2. I'm sure MrValentine can recommend a good plug-in for pixel perfect collision.
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 8th Oct 2015 22:49

After searching the forums more, I didn't realize this was such a widespread problem!

I just found something by Phaelax here:
https://forum.thegamecreators.com/thread/209775
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 9th Oct 2015 11:25
Advanced Sprites provides pixel perfect collision. The download link is not available because of the forum upgrade. I have it installed but do not have the original ZIP archive; does anyone one else have it?
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Oct 2015 13:50
Thanks Chris!

I think I may have found a link to it here:
https://forum.thegamecreators.com/thread/174502

Not sure how many updates the plugin went through, but hopefully this will do the trick!

Login to post a reply

Server time is: 2024-04-25 09:18:39
Your offset time is: 2024-04-25 09:18:39