[Resolved] isHitTestMasked not working

Hi im new to this great framework
I am trying to build a simple puzzle with the trial version
but have some problem with the “isHitTestMasked”
********************
function scene:createScene( event )
local group = self.view
local image = display.newImageRect( “gfx/puzzle/1.png”, 631, 550 )
local mask = graphics.newMask( “gfx/puzzle/img.png”, 631, 550 )
image:setMask(mask)
image.isHitTestMasked = true
image:addEventListener( “tap”, myListener )
group:insert(image)
end
********************
some how it always fires the tap event
i read some where on this forum that it was a bugg like this before

so my question is
is it still a bugg or is there something wrong with my code
if my code i wrong please give me some help

Thank you

Regards
Jens
(sorry for the bad English) [import]uid: 147488 topic_id: 26020 reply_id: 326020[/import]

Update

It dose work
I was using my old html5/webkit masks
and i hade to remake them reversed
now it works

/J [import]uid: 147488 topic_id: 26020 reply_id: 105374[/import]

Excellent, thank you for updating with that info :slight_smile: [import]uid: 52491 topic_id: 26020 reply_id: 105390[/import]

Hello peach

Is there any differs on mac code and windows code ?
i get different result when i move the working windows lua code to mac

[import]uid: 147488 topic_id: 26020 reply_id: 105393[/import]

Hey again,

What kind of differences are you experiencing? One of the main differences that I have noticed is that on Mac you will get warnings about incorrect capitalization, whereas IIRC you do not get these on Windows.

Peach :slight_smile: [import]uid: 52491 topic_id: 26020 reply_id: 105525[/import]

Hi

the mask working on windows did not work on mac
so i rebuild the masks again this time i make sure to have the 4* size and 3px border
no it works on mac also

But can i count on that the lua code i write on windows will work on mac ?
i prefer to work in visual studios(windows) then move all code to mac for compile to IOS

/J
[import]uid: 147488 topic_id: 26020 reply_id: 105535[/import]

It should be fine however it’s always a good idea to test; although Corona is cross platform each has it’s own quirks.

If the code/mask works fine on PC and not on Mac in the same version of Corona perhaps you could file a bug about this and include a zip of a project we can run that demonstrates the issues, please? :slight_smile:

Peach [import]uid: 52491 topic_id: 26020 reply_id: 105760[/import]

Hello

well the code has change :slight_smile: i have continuing working on it
i will try to reproduce it

Im new to corona do you have a link to the bug report system ?

/J [import]uid: 147488 topic_id: 26020 reply_id: 105762[/import]

Sorry about that, right here; http://developer.anscamobile.com/content/bug-submission

Peach :slight_smile: [import]uid: 52491 topic_id: 26020 reply_id: 105979[/import]