LogoPixi’VN

사운드와 음악

Learn how to play, pause, resume, edit and stop sounds and music from ink scripts in Pixi’VN using the "# play sound", "# pause", "# resume", "# edit" and "# stop" hashtag commands.

The ink + Pixi’VN integration introduces a "# script" that allows you to use the sounds and music.

# play sound sfx_whoosh delay 0.1
# play sound bgm_cheerful loop true channel bgm
Hello, I'm a cheerful background music that will loop forever until you stop me.
# pause sound bgm_cheerful
I'm paused, but I can be resumed.
# resume sound bgm_cheerful
I'm back!

재생

You can use the play to play a sound in ink. To do this, you need to use the following syntax:

# play sound sfx_whoosh volume 100

Available parameters (all optional) are the properties of PixiVNJsonSoundPlayProps.

# play sound sfx_whoosh
Now the sfx_whoosh is singing.
# play sound sfx_whoosh volume 100
Now the sfx_whoosh is singing louder.

일시정지와 재개

To pause a sound or a channel in ink, you can use the pause operation. To do this, you need to use the following syntax:

# pause sound bgm_cheerful

To resume a sound or a channel in ink, you can use the resume operation. To do this, you need to use the following syntax:

# resume sound bgm_cheerful

To pause or resume all sounds, you can use the following syntax:

file_type_ink
ink
# pause all sounds
# resume all sounds

편집

To edit a sound in ink, you can use the edit operation. To do this, you need to use the following syntax:

# edit sound bgm_cheerful volume 50

Available parameters (all optional) are the properties of PixiVNJsonSoundEditProps.

file_type_ink
ink
# edit sound bgm_cheerful volume 50
# edit sound bgm_cheerful loop false

정지

To stop a sound in ink, you can use the stop operation. To do this, you need to use the following syntax:

# stop sound bgm_cheerful

To stop all sounds, you can use the following syntax:

file_type_ink
ink
# stop all sounds

이 페이지에서