私はコロナでシーン間の移行に単純なコード行を使用しています - 移行は起こりますが、効果はありません。
storyboard.gotoScene( "splash", "fade", 2000 )
Xcode シミュレーターのビルドをコンパイルして、そこでフェード効果が機能するかどうかを確認しました。
完全なコード -
local storyboard = require "storyboard"
local scene = storyboard.newScene()
local SplashGroup = display.newGroup()
local function onBackgroundTouch()
storyboard.gotoScene("mainmenu", "fade", 2000)
end
--Called if the scene hasn't been previously seen
function scene:createScene (event)
local logoImage = display.newImage("RoxisLogo.png")
logoImage.x = display.contentWidth/2
logoImage.x = display.contentHeight/2
SplashGroup:insert(logoImage)
logoImage:addEventListener("tap", onBackgroundTouch)
end
function scene:enterScene(event)
SplashGroup.alpha=1
end
function scene:exitScene(event)
SplashGroup.alpha=0
end
--"createScene" is called whenever the scene is FIRST called
scene:addEventListener("createScene", scene)
--"enterScene event is dispatched whenever scene transition has finished
scene:addEventListener("enterScene", scene)
--"exitScene" event is dispatched before the next scene's transition begins
scene:addEventListener("exitScene", scene)
return scene