Mask touch event crashes simulator w/source

I have the latest build and the simulator always crashes when I try to drag something that has a mask. Maybe this is a bug? Could you please download this and let me know what I’m doing wrong? Basically I want to drag the star only by its mask, not its bounding box. If my my mask is wrong, could you please tell me the right way to do something like this?

http://suriyathep.com/dl/hitsample.zip

The star and its mask are divisible by 4, not sure if that’s needed anymore. Thanks!
[import]uid: 99244 topic_id: 17486 reply_id: 317486[/import]

Hello, any thoughts on this? [import]uid: 99244 topic_id: 17486 reply_id: 67337[/import]

Hey there,

Your sample runs fine in the last stable build.

If you experience issues with daily builds (which are not guaranteed to be perfect or even functional) please revert to the last stable build, which in this case is .591.

Peach :slight_smile: [import]uid: 52491 topic_id: 17486 reply_id: 67384[/import]

Thanks, I will check it on a device. [import]uid: 99244 topic_id: 17486 reply_id: 67651[/import]

Just an update on this. I filed a bug already. Masking a “movieclip” crashes the simulator/device, while masking an “image” works fine. It would be nice if the mask could either automatically follow its image accordingly, or at least have its reference point set also, not just the XY coord. [import]uid: 99244 topic_id: 17486 reply_id: 73701[/import]

Having similar issues but with images and only in certain situation when isHitTestMasked is not set

I’m getting crashing on device (iOS) only (and only when multi-touch is enabled) on a button group with an image with a mask on it, and only when quitting and returning back to a scene and only when the button is hit and re-hit more than once. A weird bug, but I fixed it when I initialized my button image with imageWithMask.isHitTestMasked = false (without this it will crash at some point)
[import]uid: 88628 topic_id: 17486 reply_id: 88451[/import]

I’ve had the same problem with hits on masks, had to remove all of the masks in my latest app due to this bug [import]uid: 79152 topic_id: 17486 reply_id: 89069[/import]

unfortunately, setting isHitTestMasked doesn’t seem to fix my problem :frowning: [import]uid: 79152 topic_id: 17486 reply_id: 89071[/import]

In my opinion, just try to avoid masks completely. It takes up too much time to debug, and it may not even work properly at all. Also don’t bet on waiting for them to fix it. [import]uid: 99244 topic_id: 17486 reply_id: 89091[/import]