Show Character Layer
Control individual layers of a character sprite
Description
Actions
Action
ID
Description
Character Setup
monogatari.characters({
'y': {
name: 'Yui',
directory: 'yui',
// Define layer order (bottom to top)
layers: ['base', 'clothes', 'face', 'accessories'],
// Define available sprites for each layer
layer_assets: {
base: {
body: 'base_body.png'
},
clothes: {
uniform: 'clothes_uniform.png',
casual: 'clothes_casual.png',
swimsuit: 'clothes_swimsuit.png'
},
face: {
neutral: 'face_neutral.png',
happy: 'face_happy.png',
sad: 'face_sad.png',
angry: 'face_angry.png'
},
accessories: {
glasses: 'acc_glasses.png',
hat: 'acc_hat.png'
}
},
// Standard sprites can still be used
sprites: {
normal: 'normal.png' // Fallback non-layered sprite
}
}
});Layer Order
Show Layer
Properties
Name
Description
Prerequisites
Examples
Hide Layer
Properties
Name
Description
Examples
Complete Example
State Management
State
History
Error Handling
CSS Styling
Related Actions
Last updated
Was this helpful?