• With over 20,000 games created, The most widely used novel game engine.

Setting the Background

Setting the background is crucial. It helps establish whether the scene takes place at a school, at home, or elsewhere, making it easier to convey the situation. Now, let’s set up a background.

In this example, we will set the background to a school classroom.

First, prepare an image like the one below. Ensure the size matches your game screen. Save the file as "room.jpg" and place it in the bgimage folder.

Background Image


The script for setting the background is as follows:


*start

; Execute background image change
[bg storage=room.jpg time=3000]

The background has changed, right?
                

Save the script and run it. Execution Result:



Now, let’s explain how this works.

[bg storage=room.jpg time=3000]

The [bg] tag is used to change the background. The storage attribute specifies the image file name for the background. The time attribute specifies the transition duration in milliseconds (1000ms = 1 second).

This means that increasing this value will create a slow transition effect when changing the background.

To switch to another background, simply use the [bg] tag again and specify a different image. It’s very simple!



>> Next: "Introduce a Character"