Character sprites that have been preloaded are automatically cached for faster display. When showing a character, the engine checks for cached sprites before loading from disk.
'show character e normal with fadeIn duration 20s'
'show character e normal at left',
'show character e normal at right with move transition 6s'
'show character e normal with end-fadeOut',
'show character e happy with fadeIn'
monogatari.script({
'Start': [
'show character e normal at left with fadeIn',
'e Hello there!',
'show character e happy at center with move transition 1s',
'e I moved to the center!',
'show character e normal with end-fadeOut',
'show character e sad with fadeIn duration 2s',
'e Now I\'m sad...',
'hide character e with fadeOut'
]
});