Hide Character
Remove a character's sprite from screen
Description
'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:
'hide character e at right with fadeOut'Properties
duration
Sets animation-duration CSS property. Format: duration <time> (e.g., duration 2s)
Examples
Basic Hide
Remove a character immediately (no animation):
Hide with Animation
Remove a character with a CSS animation:
Hide with Duration
Control how long the hide animation takes:
Hide with Position Change
Move the character before hiding:
Using End Animations
When a character is shown with end-<animation>, that animation automatically plays when hiding:
This is equivalent to:
Error Handling
The action will show an error if:
Character not found: The character ID doesn't exist in the character definitions
Character not shown: Attempting to hide a character that isn't currently displayed
Complete Example
Related Actions
Show Character - Display a character on screen
Character Layers - Hide individual sprite layers
Last updated
Was this helpful?