Goto scene, change scene and back

Hey. Hey.

I’m a fairly big beginner in coding and even though I’ve gotten stuck a few times, I usually figure it out or consult tutorials, but now I don’t know how to do it. I would appreciate some advice.

I can’t get the scene switching from one to the other and return.

Let’s say in scene 1 the player has a choice that leads each player to a different Event in scene 2 depending on which choice they chose.

In Scene 2, the event takes place and at the end I want the player to return to Scene 1, already on the story progression.

I’ve tried everything possible, searched the tutorials, looked at the forum discussions, but I guess my skull is too thick that I can’t figure it out.

Can you please give me some advice?

Thank you

1 Like

Hi –

I’ve adjusted the topic and location of your thread, so more people will see your post that can help.

It looks like a *gosub scene solution might be what you are looking for.

With this command you can go to a second scene file, perform your needed routine and then return to the original scene at the point you left off at.

You might give it a try and if you still can’t make it work as you desire, you can post your code and hopefully get further assistance.


Yes. Thank you, I wasn’t sure I was putting it in the right place myself.

And, yesoooo! That’s it. Thank you!
It’s working now. Thank you. Thank you. I probably should have asked right away instead of fighting it for two days. :slight_smile:

1 Like

No worries. I am reluctant to ask for help as well.

Usually, that is a good thing. Sometimes, not so good :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.