Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Removing transition completely from certain passages

$
0
0
Ahoy,

I've been scouring the forum for an answer for this but I'm not quite getting the effect I'm after.

I'm using twine 2 and sugarcube 2.7.0, and require certain passages to have no transition effect. Most of the text in the passage remains the same, except for maybe 1 or 2 lines and a counter that tracks the players gold.

It's a "shop" screen with two rows of items, one on the left side and one on the right side (left being seller's inventory, with the right being your own). I'm using a click macro which adjusts the qty of items and sets a few other variables, and then adds it to the column on the right, forcing a refresh for all values using a "goto" macro and referencing the same passage.

I've reduced it to almost nothing using some CSS and tagging the passages I wanted affected with 'notransition'
.passage.notransition
{
transition: none;
-webkit-transition: none;
-moz-transition: none;
}

But there is still a brief flicker.

As per a suggestion on another thread, I also tried using
<<timedcontinue 1s>>

<<addclass ".passage" "notransition">>

to the passage but there was still no change in the flicker.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 1844

Trending Articles