Question about Active Collision Area
I have an active object that is imported from a PNG with a transparent background.
Because of the size of the object, I just discovered that the collision area is a rectangle, so the transparent area is actually triggering a collision. I didn't expect this at all, is there any way around it?
EDIT: I should point out that i'm using HWA Beta5
http://pixelkick.com/spacestation1.png
Re: Question about Active Collision Area
Anyone? Is the collision area supposed to be the rectangle of the entire image, or should it be the NON-transparent area, ie, the actual visual image?
Thanks
Re: Question about Active Collision Area
you could have another active that works as the collision and then always position the above image at the collision active's position
Re: Question about Active Collision Area
True, thanks...
So the collision area is the rectangle then?
Re: Question about Active Collision Area
it really depends if the alpha-channel value is completely black, of so, then its not.
Re: Question about Active Collision Area
Thanks Mecha, I appreciate you taking the time to answer. I do think the mask is true, since i'm using a true alpha transparent PNG created by Fireworks.
I'm quite surprised by this behavior. I'll try using true black rather than transparent background and see what happens.
Re: Question about Active Collision Area
Tuna, in order to have the collision not affecting transparency you must
1) have it completely transparent.. you can't tell just looking at it. You must be sure.. make a sprite test with photoshop and make it transparent by deleting a portion of it and you'll see.
2)You must have fine collision enabled.
Re: Question about Active Collision Area
Yeah, I'm 100% sure the image boundary area is completely transparent, I work in Photoshop and Fireworks almost daily.
Fine collision is also enabled...
Re: Question about Active Collision Area
UPDATE: Problem Solved.
The other object that was colliding with the space station did NOT have fine detection turned on. Once both objects were set with fine detection, collisions ignore the transparent area.
Thanks for all the help.