User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:transition-depart

(transition-depart: String) → Changer

Also known as: (t8n-depart:)

A changer that alters passage links, (link-goto:)s, and most every other kind of link, changing which passage fade-out animation the link uses.

Example usage:

  • (t8n-depart: "dissolve")[[Next morning]] changes the [[Next morning]] link, such that clicking it takes you to the “Next morning” passage with the current passage smoothly fading out instead of instantly disappearing.
  • (enchant: ?Link, (t8n-depart: "dissolve")) causes ALL passage links to use the smooth fade-out. This is best used in a “header” or “footer” tagged passage.

Details:

This macro accepts the exact same transition names as (transition:). * “instant” (causes the passage to instantly vanish) * “dissolve” (causes the passage to gently fade out) * “flicker” (causes the passage to roughly flicker in - don't use with a long (transition-time:))) * “shudder” (causes the passage to disappear while shaking back and forth) * “rumble” (causes the passage to instantly appear while shaking up and down) * “slide-right” (causes the passage to slide in from the right) * “slide-left” (causes the passage to slide in from the left) * “pulse” (causes the passage to disappear while pulsating rapidly)

Attaching this macro to a hook that isn't a passage link won't do anything (no error message will be produced).

You can't combine transitions by adding them together, like you can with (text-style:) - (t8n-depart:"dissolve")+(t8n-depart:"shudder") won't make a transition that simultaneously dissolve-fades and shudders.

See also:

harlowe/transition-depart.txt · Last modified: 2019/04/16 03:30 by l