I have a question that I though would be more of less easy to solve, yet after hours and hours of trying I can't seem to get it to work!
Info: Twine 2.0 and SugarCube 2.6.2 on a Mac
I'm working on a story with no text input from the reader, but the ability to decide by button pressing which passage they'll move on to. It's a text heavy story, so I've been looking for a way to have the text build up more dynamically for the reader instead of loading huge chunks at once. And I do want them eventually on the same page for the reader so they can scroll back up if they want to.
I started off having buttons that will trigger the next big segment to appear on the same page by using <<display>>, thereby segmenting one long text into 3-4 passages and have them click their way through the build up before the reader is prompted to make a decision. By that time he has the whole text to his disposal when he makes the final decision.
I like the fact that the reader can decide their own pace that way, but I want to get away from the buttons and make everything smoother for the reader, by having them use either the Enter key, or SpaceBar to build up the text.
(I know it's possible to trigger text passages via timer, but I'd really love to have the reader click on his own pace.)
What would be the best way to do this?
I know I'll have to work with variables to make the function load the appropriate paragraph each time and so I can unset that variable on passages where I need them to stop, but right now I can't even figure out how to have text appear below an existing passage by keypress.
Please keep in mind that the text it will load will at some point include macros (for example the buttons at the end), so any macro/variables/etc. should work within the loaded segment.
Is there any way I could do this, or am I forever stuck with buttons?
(-> if I can get this to work I'd ideally want to try to also have A/S/W/D keybindings for the decision buttons eventually, so people could read and interact by using their mouse, OR just their keyboard. But one step at a time!)
I'd appreciate any help I can get!