Director previous scene help

Hello,

i’m not really sure how to make it so the scene goes back one.

When playing the game and after winning/failing level one it goes to a restarter scene in which you can go to the next level, menu or retry. i set the retry button to reload level one and if i play level to i also end up going to level 1 when retrying. i figured i need some sort of why so when the retry button is pressed it will go back one scene.

also, for the next button is there a way that i could make it so if the previous scene = level 1 then it goes to level 2
but if the previous scene = level 2 then it goes to level 3.

Any suggestions? [import]uid: 113909 topic_id: 21749 reply_id: 321749[/import]

What I’m do now is.
1.lua
2.lua
3.lua

if current = 2
last_stage = 2-1
retry = 2
next_stage = 2+1

[import]uid: 94613 topic_id: 21749 reply_id: 86537[/import]