Closed subsoap closed 5 years ago
You could add zero-width space characters to your text to add a delay:
\226\128\139
Good idea!
Although it ends up looking like this
Maybe runtime solution would be to swap a special tag with the marked number of zero-width chars.
Maybe add a new tag <zwsp repeat=5/>
to insert repeat
number of zero-width space characters?
Or maybe add a generic custom tag handler where you could register a handler for a tag and when it is encountered you get any enclosed text as an argument your tag handler function.
I'll think a bit on this and see what can be done. This week is a bit crazy but on Friday we have an exploration day in the team. I'll do some work on Defold-RichText then.
<zwsp repeat=5/>
would be good enough for my use case.
Was <zwsp repeat=5/>
added or &zwsp; by itself?
Only &zwsp; for now
For future searching reference, if something is zwsp it gets a zwsp tag. So you can skip zwsp characters for effects.
if last_word.tags and not last_word.tags.zwsp then
Yes, good point. Each &zwsp; will be converted into a
It would be useful if it were somehow possible to add tags like to be able to skip timer.delay repeats based on those kinds of tags. Maybe being able to check the next word/tag see if it's a wait tag and live edit it so it's at or below 0?
This would be useful to add a little time between line breaks / add suspense in text.