0 votes
by (120 points)
Hello. Im pretty new to Twine. But I want to use this Effect in some of the Pages in Twine:

http://twinery.org/cookbook/typewriter/harlowe/harlowe_typewriter.html

My Problem: How do I use it? I cant find a tutorial on that one... Thanks in advance!

2 Answers

0 votes
by (6.2k points)

I'm not sure I understand the code or what it's trying to achieve on that page, but try this? Is it what you're looking for?

(live: 0.2s)[H(live: 0.2s)[e(live: 0.2s)[l(live: 0.2s)[l(live: 0.2s)[o(stop:)](stop:)](stop:)](stop:)](stop:)]

 

0 votes
by (156k points)

The Using the Twine Cookbook page of the cookbook explains how to download and import a "Live Example" HTML file. Once you have imported the file you will have a new story project which you can open, within this project are the the Passages that make up the example.

The Typewriter passage in the example includes the code that produces the "typewritter" effect.

The Start passage in the example shows how to "use" the effect.

1. Assign the text you want to display to the $typewriterText story variable.

2. Call (display: "Typewriter") to start the effect.
 

WARNING: This "effect" uses specific name hook as the area into which the text will be displayed and a (live:) macro to achieve the delay between the displaying of each letter of the text within that area, because of this you can only use this "effect" once per Passage.

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.
...