A demo of a SugarCube macro to fade to black between passages. It is downloadable to allow others to look into its contents!

Setup

  1. Copy and paste this Pastebin to your Story JavaScript.
  2. Copy and paste this Pastebin to your Story Stylesheet.

After this, your installment of the macro should be complete!

Usage

You can use the code <<link "Link text.">><<passagefade [passage] [fadein] [delay] [fadeout]>><</link>> to fade in and out of passages.

DO NOT include the passage that you want to go to in <<link>>. Put it in <<passagefade>> instead.

  • [passage] is the passage name you want to go to next.
  • [fadein] is how long it takes for the black screen to fade in in miliseconds.
  • [delay] is how long the black screen stays in miliseconds.
  • [fadeout] is how long it takes for the black screen to fade out in miliseconds.
  • [image] (OPTIONAL) to insert a web URL of a picture, if you would like to show an image instead of a black fade. It is limited to being a cover, no-repeat, centered background image.

Example: 

<<link "Next passage.">><<passagefade "nextPassage" 1000 1000 1000>><</link>>

Or to include an image:

<<link "Next passage.">><<passagefade "nextPassage" 1000 1000 1000 "image.png">><</link>><br>

Updated 28 days ago
StatusReleased
CategoryAssets
AuthorMistyrious

Download

Download
BlackFadeV2_DL.html 560 kB

Leave a comment

Log in with itch.io to leave a comment.