Hi!
I’m having trouble with a bitmask, It works fine in the simulator but does but show up at all (ie. eveything beneath the mask is totally visible) when I build for android and load it on my device (a vodafone smarttab 10 withandroid 3.2) the mask files resolution is a multiple of 4… heres my code… I’m applying the mask to the display group “Gtitle”
All the other stuff is to generate moving rectangles beneath the mask, they work fine
Also I’m using the trial version of corona
Thanks for any help/leads !!
–Get rid of statusbar
display.setStatusBar(display.HiddenStatusBar)
–Setting up display width,height and centre for future reference
local W,H = display.contentWidth,display.contentHeight
local xc,yc = display.contentCenterX,display.contentCenterY
–New display group with “SHAPEFORM” title mask
local Gtitle = display.newGroup()
local mask = graphics.newMask( “MASK_title.gif” )
Gtitle:setMask( mask )
Gtitle.maskX = xc
Gtitle.maskY = yc
local x = 5
function goleft()
local lefty = display.newRect(Gtitle,-500,0,x*3,H )
lefty:setFillColor(x,math.random(0,x),math.random(0,x))
transition.to(lefty,{x = W+500, time = 400})
if godown ~= true then
if x >= 255 then godown = true end
end
if godown ~= true then x = x + 5 else x = x - 5 end
end
leftimer = timer.performWithDelay(150, goleft,100)
[import]uid: 163907 topic_id: 29492 reply_id: 329492[/import]