Previous scene

Is there a way to easy get to the previous scene? [import]uid: 24111 topic_id: 8195 reply_id: 308195[/import]

I’m using this code, and I don`t know if it is right or if It will add all scenes in memory and break my app… it is right or there is an method to go back?

director:changeScene("previousPage", "fade")  

I have found this method in the source but it dont work:

director:unloadScene("thisPage") [import]uid: 6732 topic_id: 8195 reply_id: 33251[/import]

try this:

[lua]-- define your previous scene

local previousPage = “level1”

director:changeScene(previousPage, “fade”)

– that should be it. [import]uid: 12455 topic_id: 8195 reply_id: 33663[/import]