Hey everyone!
I am a new Corona user and as much as I love it, I am also very confused. Everything is going pretty good but there is just one thing that is driving me nuts.
I have 3 different color balloons, 2 of each color. I want them to spawn from the bottom and float up to the top of the screen. I want it to be able that when you tap on say Balloon(1A).png it changes to Balloon(1B).png. I know that doesn’t sound too complex, but there has been a lot of problems. I can’t seem to figure out how to make it so all 6 images will be spawned randomly, not all at once, but come up at different times. I want the balloons 1(A),2(A),3(A) versions to appear more often then balloons 1(B),2(B),3(B).
I was able to make a balloon spawn from the bottom, fly to the top, and remove when it gets there.
[code]–> Balloon 1A
local listener1 = function( balloon1AObject )
balloon1AObject:removeSelf()
end
local balloon1AObject = display.newImage( “images/Balloon(1A).png” )
balloon1AObject.x = math.random(40,300); balloon1AObject.y = 800
balloon1AObject.myName = “balloon1A”
balloon1AObject.transToballoon1A = transition.to(balloon1AObject, {time=7000, x=200, y=-500, onComplete=listener1 })
localGroup:insert(balloon1AObject)
end
tmrballoon1A = timer.performWithDelay( 3000, fnballoon1A, 0 )[/code]
If you could please guide me on how to get this done, it would be greatly appreciated.
[import]uid: 118461 topic_id: 20660 reply_id: 320660[/import]
[import]uid: 52491 topic_id: 20660 reply_id: 81191[/import]