I am creating a school project, which contains a 8 scenes and a main one.
When I press on an object(triangle) the scene moves to the Triangle scene
when I press oval scene schould move to the Oval scene, but it shows me an error.[lua]local composer = require( “composer” )
local scene = composer.newScene()
– Code outside of the scene event functions below will only be executed ONCE unless
– the scene is removed entirely (not recycled) via “composer.removeScene()”
– Scene event functions
local function changeScenes1( )
composer.gotoScene(“Oval”, {effect = “fade”,time = 500})
end
local function changeScenesA( )
composer.gotoScene(“Triangle”,{effect = “fade”, time=500})
end
[/lua]
I really need your help. Thank you in advance