composer.getScene() returns the scene’s object. composer.gotoScene() needs a scene “Name”, which is a string. You would just do:
composer.gotoScene( "levelA", options )
In future posts, doing screen shots of code isn’t very useful (better than hand typing, but not by much). You are better off selecting the text in your editor and doing a CTRL-C (PC) or CMD-C (Mac) and then click the blue <> button in the forum’s edit bar (where Bold, Italic, Underline, etc. exist). Then paste your code in with CTRL-V/CMD-V… This will properly format your code.
composer.getScene() returns the scene’s object. composer.gotoScene() needs a scene “Name”, which is a string. You would just do:
composer.gotoScene( "levelA", options )
In future posts, doing screen shots of code isn’t very useful (better than hand typing, but not by much). You are better off selecting the text in your editor and doing a CTRL-C (PC) or CMD-C (Mac) and then click the blue <> button in the forum’s edit bar (where Bold, Italic, Underline, etc. exist). Then paste your code in with CTRL-V/CMD-V… This will properly format your code.