We’re working diligently on a game here at my office. For some odd reason the sales person decided to set up a meeting with a major company tomorrow and one of our “ins” will be our game, which isn’t complete by far. Which … is infuriating.
So, I’m up against a clock and I have no solution to this problem.
I’m using Peach Pellen’s excellent time bar tutorial … well, a hacked version but it’s a version of it none the less.
What we’re doing is this - it’s a bomb. The fuse is actually the timer. I have a spark that’s counting down. I want a mask to hide the fuse as the timer counts down - basically following the spark.
Problem occurs.
I set the mask, no prob I get that. Mask hides the WHOLE fuse. Ok, that’s annoying. I change the image.maskX and it not only changes the maskX but it changes the image scale …
I’ve gone through the Flashlight example, which really doesn’t help sadly.
Help me Obi-Wan … I mean, Corona Community. You’re my only hope!
local bombNeutral = display.newImage (imgPath .. "bombBottom.png")
bombNeutral.x = display.contentWidth -41
bombNeutral.y = display.contentHeight -65
local bombGlowy = display.newImage (imgPath .."bombBottom\_red.png")
bombGlowy.x = display.contentWidth -41
bombGlowy.y = display.contentHeight -65
local fuseImage = display.newImage (imgPath .. "fuse.png", 996,25)
fuseImage.x = display.contentWidth \*.5
fuseImage.y = display.contentHeight - 53
local fuseImageMask = graphics.newMask(imgPath .. "blackmask3.png")
fuseImage:setMask (fuseImageMask)
fuseImage.maskX = fuseImage.maskX - 200
local function loseTime()
if timeBar.width == 750 then
transition.to(bombNeutral, {time=3000,alpha=0})
end
if (timeBar.width == nil or timeBar.width \>= 900 ) then
bombBursting:show(bombGlowy.x, bombGlowy.y)
bombBursting:playClip("mExplode")
displayGameOver()
else
timeBar.width = timeBar.width + timerSpeedVar
fuseSpark:translate(timerSpeedVar,0)
createSpark()
sparkXloc = sparkXloc + timerSpeedVar
timeBar:setReferencePoint(display.BottomLeftReferencePoint)
timeBar.X = 20
end
end
gameTimer = timer.performWithDelay(1,loseTime, 0)
timer.width is being controlled by an image. For some reason I never changed that from an example I used … sorry for my hackiness here.
I need help … major help. [import]uid: 97023 topic_id: 21491 reply_id: 321491[/import]

[import]uid: 52491 topic_id: 21491 reply_id: 85143[/import]