i have a simple level select system but im stuck on how to implement a restart button, i had something like this but it shows me a black screen. You press the restart button on level 1 say for example and it takes you to restart.lua
-- restart.lua local composer = require "composer" local scene = composer.newScene() composer.gotoScene( composer.getSceneName( "previous" ) ) return scene
this doesn’t work unfortunately, any ideas?