tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

The <<type>> macro's typing speed also applies to the starting character, effectively extending the start delay. #92

Closed cyrusfirheir closed 3 years ago

cyrusfirheir commented 3 years ago

Test cases:

<<type 1ms start 1s>>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec lorem id felis posuere tempus at nec lacus.
<</type>>
<<type 1s start 1ms>>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec lorem id felis posuere tempus at nec lacus.
<</type>>

Both take the same amount of time to start.

tmedwards commented 3 years ago

(Preface. Writing this from my phone.)

The first character(s) typed in your examples are non-printable. Meaning that the first printable character will indeed show both the initial start delay and the printing speed delay of whatever non-printable characters it's already typed.

Did you try your test when the first character is a printable?

cyrusfirheir commented 3 years ago

I'd thought of that when it was first noticed, that it could be something invisible being printed, but It happens even when used like this:

<<type 1s start 1ms>>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec lorem id felis posuere tempus at nec lacus.<</type>>