Hi, I have an opening movie consisting of several scenes that transition from one to the next using cross-fades. At any time, I want the user to be able to touch the screen (anywhere) and skip to the main menu. So I created an invisible full-screen button for the user to touch. It works fine, except during the cross-fades, at which times it becomes un-responsive. Can anyone help explain why this is happening? Any help would be much appreciated. Here is my code:
[lua]
local changeScene = function()
storyboard.gotoScene( “scene2”, “crossFade”, 1000 )
end
local sceneTimer = timer.performWithDelay( 4500, changeScene, 1 )
--Create Invisible “Skip to Title Screen” Button
local skipButton = display.newRect( 0, 0, _G.W, _G.H )
skipButton.alpha = 0
skipButton.isHitTestable = true
skipButton:addEventListener(“touch”,
function(inEvent)
if inEvent.phase == “ended” then
– deal with opening music and transition to Title Screen
audio.stop(1);
timer.cancel( sceneTimer )
storyboard.gotoScene( “data.screens.TitleScreen” );
end
end
);
[/lua]