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 / Collision question

Author
Message
chikarazuyoi
15
Years of Service
User Offline
Joined: 12th Sep 2009
Location:
Posted: 3rd Oct 2009 21:12
If i have a image that is all white and i had set white as my transparency and it had a collision with another object will the collision be detected?

example:
object -> transparent object
|o| -> | |

Thanks
ErDa
16
Years of Service
User Offline
Joined: 17th Feb 2008
Location:
Posted: 4th Oct 2009 00:58
I don't know what's stopping you from testing, but yes, that will indeed collide.
Paynterboi TicTacToe
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: That one place
Posted: 4th Oct 2009 06:24 Edited at: 4th Oct 2009 06:25
To give you another idea, you can use dbHideSprite( ) and test collision with the hidden sprite and the objects will still collide, I say this because In my game my sprites contain te color white primarily and this prevents the need to set a transparency color ( at least in your example ) so you can use that color later on if you need to.

Also, I use 255,0,255 for my transparency color mostly due to the fact that it is seldomely used ( and 254,0,254 is just as good if i need it )

EYE R T3H +ick +ack +oe mester

Login to post a reply

Server time is: 2024-11-20 13:43:18
Your offset time is: 2024-11-20 13:43:18