Monogatari Documentation
HomepageGitHubDiscordTwitter
v1.3.0
v1.3.0
  • Getting Started
  • Configuration
    • Internationalization
    • Saving
    • Skip Main Menu
  • Design
    • CSS Classes
    • HTML Data Attributes
    • Icons
    • Image Menus
  • Port
    • Ren'py
  • Release
    • Chrome App
    • Desktop
    • Mobile
    • Web
  • Script
    • Audio
    • Characters
    • Choices
    • Images
    • Input
    • JavaScript
    • Labels
    • Messages
    • Notifications
    • Particles
    • Scenes
    • Split Files
    • Storage
    • Text
    • Vibration
    • Video
Powered by GitBook
On this page

Was this helpful?

  1. Script

Scenes

The scenes clear the screen and change the background. They will also clear the screen, removing the text, characters and images displayed.

You can either use images or css for the scenes. They will change with a fadeIn effect by default, currently that's the only animation available but more will be added.

If you'll use images, must declare them first, every scene image file must be placed in the scenes directory inside the img directory.

var scene = {
    "mountain": "mountain.svg",
    "sea": "sea.png"
}

Now, to change the scene, just use the scene command. Syntax: "scene [Scene Identifier]"

"scene mountain"

If you'll use css to set your own background style, you must use the scene command as well. Syntax: "scene [CSS]": These are valid ways to use it:

"scene #fff"
"scene rgb(0,0,0)"
"scene url('img/scenes/mountain.svg')"
PreviousParticlesNextSplit Files

Last updated 6 years ago

Was this helpful?