Complementing Your Dress Up Game with Background Image and Music
You're almost done with your dress-up game! For now, let's improve your dress-up game by adding a background image and music.
Adding the Asset
❏ Uploading the background image
Let's first learn how to upload the background image in the library.
Open your project's Library by clicking on this tab.
Click Images and then press the 'Add Image' button.
Click Images
Press 'Add Image'
Click Images
Press 'Add Image'
Name your Asset and choose a file or enter a URL in the URL bar.
(Tips: If you're bulk uploading, you don't have to name your asset)
Next, click 'Add Image' to start uploading.
❏ Repeat these steps for sound
Repeat these steps for the sound except you'll have to choose the 'Sound' asset before adding the sound.
Placing the Image on the Stage
❏ Showing the background image
Go back to the Build section.
Just like the name of the asset, background image, and music, we will be placing them at the back of the model. So make sure you've toggled the 'Back' option for this button.
Next click 'Add Assets' and drag and drop the assets you've just added.
Enter the timeline by clicking this blue button.
Select the background image among the list in the Scene Assets panel.
Within the Animation and Commands panel, choose 'Show Image' to make the background image appear on the stage.
Play the animation in the timeline.
❏ Tweaking 'Show Image' animation
If you aren't satisfied with the animation, you can always edit it.
Click the 'Show Image' animation from the timeline. This will bring up the settings for the animation.
If you wish to change the position of the image horizontally, you can do so by changing the value here.
If you have a problem with its vertical orientation instead, you'll have to look at the 'Selected Asset' panel on the left-side of your Workspace.
Among other assets info, you'll find an input box with Y Position beside it. Entering a value here will change the vertical position of the image.
If you ever need to change the size of the image, you can do so by inputting a number less than 1 to scale down or bigger than 1 to scale it up.
Make sure to save changes before we move on to the sound.
Playing the Background Music
❏ Playing the sound
First, please confirm that you are inside the timeline editor and your workspace looks like with the Assets Scene panel on the left-side.
Next, select your sound asset to enter the Asset's setting.
Now, if you look at the Animation and Commands, you'll see a bunch of animations? Now, which one should we use?
Don't worry, let us explain.
Among all of the animations, if you want to play the sound, you'll have three choices.
- Play
It will play the sound once then stop. - Loop
It will play the sound then keep looping it until you add a Stop animation. - Fade In
The sound will enter the stage with low volume at first then gradually increase the volume to normal and it will keep looping until you add a Stop animation.
Press on the stage and it should start playing. If it didn't please wait for a while because the sound may be delayed a bit for the first time loading.
After this, your dress-up game is pretty much finished. Next, we will learn how to publish your game to CloudNovel.