Compiler: Tweego v 2.1.1
Story Format: SugarCube v 2.36.1
I’d like to be able to “return” from a passage (call it B) to the location where it was invoked in the previous passage (call it A). Am I overlooking an option in the
<<link>> seem always to open a passage with the reader’s viewpoint at the top of the passage. This can be annoying if the reader would like to continue reading from the point in Passage A where the link to Passage B was invoked.
For example passage A might contain
:: Passage A lotsa text <span id="return_here"> </span> <<link "Passage B">> <</link>> lots more text
What should Passage B contain to get the reader back to the location of the span with the id “return_here” ?
Or is there another way to define an anchor point in Passage A which could be used as a return point?
I tried using this “obvious” construct in Passage B
<<link "Passage A#return_here">> <</link>>
but that generated a link which tried to open an external file. Am I using the wrong syntax?
I tried using the macro
<<ScrollTo... at the top of Passage A but it didn’t seem to do anything. In particular, the construct
<<ScrollTo "return_point">> lotsa text <<span id="return_point">> <</span>>> lotsa text
left the viewpoint at the top of Passage A.
<link "go to return_point">> <<ScrollTo "return_point">> <</link>>
does work, but that’s an extra step for the reader which I’d prefer to avoid.
I’ve considered displaying Passage B in a popup or as a previously hidden section of Passage A. Those options are OK in some situations, but less so in others.
Thanks for whatever help you can provide.