If you add an actor with a sprite with transparent areas, the Mouse Button Down will work only on the opaque areas.
How to make that - Mouse Button Down work all over the sprite?
saikspaik wrote:Okay, I tried both methods for solving problems with a transparent area, and the sources of my work below.
Method with the Filled Region works well for one actor, but if actors two or more, some of the problems begin.
Method with 99% transparent PNG layer works well, and I think this is the best variant, at least for now.
But anyway, GE needs an option where you can choose how to detect mouse click on the actor (bounding box, or precise check).
Hope you understand my english.
The other thing is, if you have e.g. a PNG file with alpha (transparency) and if you want to have bounding box collision checking, i always create another layer in photoshop, then make it completle black and set alpha to 1%. this way you cannot really see it but it´s there and gets considered for collision checking.
i´m totally fine with GE´s pixelperfect collision system! i dont like the bounding box stuff (just my opinion).
saikspaik wrote:So far, this is the best way. And by the way, about the png with alpha you've said in this same topic, remember?:)
I just thanks to your advice solve my problem, so thank you:)
Users browsing this forum: No registered users and 1 guest