Comment on page
Show a character's sprite
'show character <character_id> <sprite_id> [at [class]] [with [animations] [classes] [properties]]'
Requires User Interaction: No
These are special properties/classes that can be used when showing a character:
Remember every character image must be declared in the characters object.
'show character e normal at center with fadeIn',
'show character e normal',
'show character e normal with fadeIn',
New to version 2.0: You can now also set an animation that will play when the character is removed or replaced.
show character <character_id> <sprite_id> [at [class]] [with [animation] [end-[animation]] [classes]]
This is useful if you want to smoothly transition the same character's sprites, such as this example involving crossfades.
The following code will show the character with a
fadeInanimation that will take 20 seconds to complete.
"show character s Normal at center with fadeIn end-fadeOut",
"s Hi theeeeere.",
"show character s Happy at center with fadeIn end-fadeOut",
"I'm happy now, and my smile just faded onto my face.",
"show character s Normal at center with fadeIn",
'show character e normal with fadeIn duration 20s'
End animations are a way of preparing an animation to happen whenever a sprite gets changed, the following code will show the character first and when it reaches the next line, the character will fade out while the new sprite fades in.
'show character e normal with end-fadeOut',
'show character e happy with fadeIn'