0
화면 전환 효과가 작동하는 데 문제가 있습니다. 지원되는 페이드 및 크로스 페이드 효과를 시도했지만 전환이 발생하면 즉각적이며 전혀 효과가 없습니다. 다른 모든 것은 잘 작동하며 오류가 발생하지 않습니다. 내가 도대체 뭘 잘못하고있는 겁니까?Corona/Lua : 화면 전환이 작동하지 않습니다.
local storyboard = require ("storyboard")
local scene = storyboard.newScene()
local loading = require ("loading")
local loading = loading.new()
function switch()
storyboard.gotoScene("scene1","fade", 700)
end
function scene:enterScene(event)
timer.performWithDelay(2000,switch,1)
end
scene:addEventListener("enterScene", scene)
return scene
또한
function switch()
storyboard.gotoScene("scene1",{effect="fade", time=700})
end
및
을 시도local options = {effect="fade", time=700}
function switch()
storyboard.gotoScene("scene1", options)
end
또한 createScene()에 추가해야합니다. 디스플레이를 생성하기 위해 enterScene()을 기다릴 때, 빈 장면이 화면으로 전환 될 때까지는 발생하지 않습니다. –