Hi everyone! When switch scene from one scene to another with transition on Android - it is stuck on the first scene. If I remove transition if work. Interesting that everything works fine on Mac and Windows. Code, which I have for transition from:
local transitions = require "monarch.transitions.gui"
local timerHandle
function init(self)
self.transition = transitions.create(gui.get_node("fader"))
.show_in(transitions.fade_out, gui.EASING_LINEAR, 0.5)
.back_out(transitions.fade_in, gui.EASING_LINEAR, 0.5)
-- Production
-- .show_in(transitions.fade_out, gui.EASING_LINEAR, 5)
-- .back_out(transitions.fade_in, gui.EASING_LINEAR, 1.75)
end
local function delayUntilIsReady(nextScene)
timerHandle = timer.delay(1, true, function(self, handle, time_elapsed)
if not monarch.is_busy() then
screenModule:show(nextScene)
timer.cancel(timerHandle)
end
end)
end
function on_message(self, message_id, message, sender)
if message_id == hash('switch-scene') then
monarch.back(_,function()
delayUntilIsReady(message.location)
end)
return
end
if message_id == monarch.TRANSITION.SHOW_IN or message_id == monarch.TRANSITION.BACK_OUT then
self.transition.handle(message_id, message, sender)
end
end
Logs of monarch.debug with/without transition: Saved diff JZegraPl - Diff Checker
Monarch version: 3.4.3
Is it already known bug? Or should I create a github issue?