I am currently working on level transitions in a game. We tried using director, but most of the code was already there and it proved to difficult to implement at this point. We have it to go Main menu --> mini map --> level one. each on a button click. The main menu to mini map works but the button on the mini map isn’t responding. here is the transition code we have. [code] function world1MiniLoad()
print((_W/500), _H/1000)
Levelbackground = display.newImage( “world1Mini.png”, true)
Levelbackground.x = 0*_W/500+_W/2
Levelbackground.y = 0*_H/1000+_H/2
Levelbackground:scale(display.contentWidth/500, display.contentHeight/1000)
Levelbackground: setReferencePoint(display.TopLeftReferencePoint)
Levelbackground:toBack()
continueB = display.newImage(‘continue.png’)
continueB:addEventListener(“tap”, worldOne)
continueB:addEventListener(“tap”, tweenMS)
continueB.x = 250
continueB.y = 530
end
function worldOne:tap(e)
if(e.target.name == “continueB”) then
– start game
–startB = display.newImage(‘newGame2.png’)
–audio.stop(menuSoundtrack)
–menuSoundtrack = nil
–audio.play(newSound)
–transition.to (menuScreen,{time =500, y= -menuScreen.height, transition = easing.outExpo, onComplete = worldOne})
– startB.isVisible = false
– continueB.isVisible = false
– addWorldB.isVisible = false
– optonB.isVisible = false
WorldOneLevels:levelZeroLoad()
–audio.stop(menuSoundtrack)
–audio.play(world1Soundtrack)
–Richload()
–menuScreen:removeSelf()
–menuScreen = nil
end
end [import]uid: 94237 topic_id: 17771 reply_id: 317771[/import]

[import]uid: 52491 topic_id: 17771 reply_id: 68078[/import]