It looks like you're new here. If you want to get involved, click one of these buttons!
local transitionEventCatcher = Sprite.new() local function stopTransitionEvents(e) e:stopPropagation() end local function onTransitionBegin() stage:addChild(transitionEventCatcher) transitionEventCatcher:addEventListener(Event.MOUSE_DOWN, stopTransitionEvents) end local function onTransitionEnd() transitionEventCatcher:removeEventListener(Event.MOUSE_DOWN, stopTransitionEvents) stage:removeChild(transitionEventCatcher) end sceneManager:addEventListener("transitionBegin", onTransitionBegin) sceneManager:addEventListener("transitionEnd", onTransitionEnd) |
Comments
exitBegin to stop the listeners on one scene and enterEnd to start them on the next one?
edit: sorry I meant exitBegin/enterBegin and exitEnd/enterEnd are at the same time
My apps: http://www.yummyyellow.com