'hide character <character_id> [at <position>] [with <animation> [classes] [properties]]'
The hide character action removes a character's sprite from the screen. If the character was shown with an end-<animation> property, that animation will play automatically when hiding.
Action ID: Hide::Character
Reversible: Yes
Requires User Interaction: No
Syntax
Positions
The optional at <position> clause can move the character to a different position before applying the hide animation:
// Show with exit animation prepared
'show character e normal with fadeIn end-fadeOut',
'e Hello!',
// The fadeOut will play automatically
'hide character e'
'show character e normal with fadeIn',
'e Hello!',
'hide character e with fadeOut'
monogatari.script({
'Start': [
'show character e normal at left with fadeIn end-fadeOut',
'show character y happy at right with fadeIn',
'e Hi Yui!',
'y Hello Evelyn!',
// Evelyn will fade out (using end-fadeOut)
'hide character e',
'y Where did she go?',
// Yui slides out to the right over 2 seconds
'hide character y at right with slideOutRight duration 2s'
]
});