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 / 2D sprite collision in transparent sprite areas

Author
Message
Lady Ice
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 27th Apr 2003 03:34
Is it possible I wrote a small test program using a ball and a map sprite when the ball is in the map image transparent zones is still registers a hit is there any way around this?



This is my first time pasting code so dont mind if it shows uop twice I posted it in this window aswell as the code window to view the results.

Thanks for any help gang!
Princess Leia

SYSTEM: AMD 2.7Ghz, 1GIG DDR ram, 120GB HD, ATI Radeon 9700.
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 27th Apr 2003 06:40
sprite collision is really plane collision and it doesn't figure in the texture on the plane, sorry no way around it. But, if you don't need the extra features of sprites like real time rotation then the are several examples of pixel perfect collision for images on the code snippet board.

CTP

Lady Ice
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 28th Apr 2003 06:14
Thanks I'll try that!

Princess Leia

SYSTEM: AMD 2.7Ghz, 1GIG DDR ram, 120GB HD, ATI Radeon 9700.

Login to post a reply

Server time is: 2024-09-20 05:33:31
Your offset time is: 2024-09-20 05:33:31