Certainly! Here's an example of how you can implement the smooth appearance and disappearance of three splash screens using Kirikiri:
-
First, make sure you have the necessary assets for the splash screens, such as images or videos.
-
Create a new scene or script file using Kirikiri's visual novel engine.
-
Define three labels or functions for each splash screen in order to control their appearance and disappearance. For example:
[Splash1]
// Function to display the first splash screen
[chara_hide] always
[chara_splash] append 1, splash1.png
[chara_show] always
[Splash2]
// Function to display the second splash screen
[chara_hide] always
[chara_splash] append 1, splash2.png
[chara_show] always
[Splash3]
// Function to display the third splash screen
[chara_hide] always
[chara_splash] append 1, splash3.png
[chara_show] always
- In the main script or scene, create a function that handles the smooth transition between splash screens. You can use a fading effect with timers to achieve this. Here's an example:
[Init]
// Function that controls the smooth appearance and disappearance of splash screens
[chara_hide]
[chara_show]
$ fader = 0; // Set initial fading effect value
$ fade_in_speed = 10; // Adjust this value to control the fading speed
$ fade_out_speed = 10; // Adjust this value to control the fading speed
[label Start]
// Call the first splash screen
[jump Splash1]
[label Splash1]
// Display first splash screen
[call Splash1]
// Start fading-in effect
[fadein "black" fade_in_speed]
$ fader = 1; // Set fading effect flag
// Wait for the desired duration of the first splash screen
// Adjust the timer value according to your requirements
[wait 2000]
// Start fading-out effect
[fadeout "black" fade_out_speed]
// Wait for the desired duration of the fading-out effect
// Adjust the timer value according to your requirements
[wait 100]
// Call the second splash screen
[jump Splash2]
[label Splash2]
// Display second splash screen
[call Splash2]
// Start fading-in effect
[fadein "black" fade_in_speed]
$ fader = 1; // Set fading effect flag
// Wait for the desired duration of the second splash screen
// Adjust the timer value according to your requirements
[wait 2000]
// Start fading-out effect
[fadeout "black" fade_out_speed]
// Wait for the desired duration of the fading-out effect
// Adjust the timer value according to your requirements
[wait 100]
// Call the third splash screen
[jump Splash3]
[label Splash3]
// Display third splash screen
[call Splash3]
// Start fading-in effect
[fadein "black" fade_in_speed]
$ fader = 1; // Set fading effect flag
// Wait for the desired duration of the third splash screen
// Adjust the timer value according to your requirements
[wait 2000]
// Start fading-out effect
[fadeout "black" fade_out_speed]
// Wait for the desired duration of the fading-out effect
// Adjust the timer value according to your requirements
[wait 100]
// Jump to the main menu or the next section of your visual novel
[jump MainMenu]
Note: Adjust the duration values and fading effect speeds according to your requirements.
This example demonstrates a smooth transition between three splash screens by fading them in and out. You can modify the code or add additional actions to achieve the desired effects.