0 votes
by (130 points)
Hi I'm using Sugarcube to make my game and I wrote a dialog with click and replace macros. But my problem is that the paragraph I add just come without any transition. How can I add a transition like when we go in a new passage or like when we use the argument t8n with time macro ?

Sorry my English please

1 Answer

+1 vote
by (63.1k points)

For an actual fade effect, I wrote some macros a while ago: 

https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/master/docs/fading-macros.md

For just a quick transition, you can just use the <<timed>> macro: 

<<replace "#thing">>\
    <<timed 10ms t8n>>\
        content 
    <</timed>>
<</replace>>

You can also switch over to the <<linkreplace>> macro, which allows transitions without having to use a workaround: 

<<linkreplace "blah" t8n>>\
    content
<</linkreplace>>

This last one may or may not work based on how you have things laid out. 

...