0 votes
asked by (160 points)
In my game, I have a link to an outside website. The outside website can have a link back to the game or users can probably use the back button too. I need a way to stop the game from starting over and sending the users back to the homepage when they come back from the app from the outside link.

I have previously used harlowe for another twine game but I've been told I need to use sugarcube for this feature. I only know HTML and CSS and I'm new to javascript.

1 Answer

+1 vote
answered by (30.7k points)

Actually, if you switch to using the SugarCube story format in Twine, then it automatically remembers what passage you were on like that.  So if they're playing your game, then there's a link that takes them to another website, if they then hit the browser's back button, then with SugarCube it will go back to the same passage you were in before.

So, nothing special you need to do to get what you want, other than switch to the SugarCube story format.

If you want the latest version of SugarCube you can download it from here, the installation instructions are here, and you can find the SugarCube documentation here.

Enjoy!  :-)

commented by (160 points)
Thank you so much!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...