I just have two simple files. Menu and Pause.
In the menu I have:
local composer = require("composer")
local scene = composer.newScene()
local text = display.newText("Main Menu", 40, 40, native.systemFont, 15 )
text:setFillColor(1,1,1)
local options = {
effect = "slideRight",
time = 800,
}
composer.gotoScene( "pause", options )
return scene
in the pause I have:
local composer = require("composer")
local scene = composer.newScene()
local rect = display.newRect(40, 40, 200, 200)
--blue
rect:setFillColor(0,0,1)
return scene
All I want is just to go from the menu to pause with the composer transition like “slideRight”. But in my example, it just opens the pause scene right away without transitions at all. What I’m doing wrong?
Thanks.