五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

sound and music functions

2023-08-31 01:33 作者:是白不是懷特  | 我要投稿

Start Sound/Music Functions playSound(sound:String, volume:Float = 1, ?tag:String) Plays a sound inside the game. If the sound is finished the tag parameter will be called at onSoundFinished() function. sound - The ogg sound file to be played; Must be relative to mods/sounds or assets/sounds folders. volume - An optional parameter, The specified volume percent of the sound; Goes from 0 to 1; Defualt value: 1. tag - An optional parameter, The sound object tag name to be used. playMusic(sound:String, volume:Float = 1, loop:Bool = false) Plays a music inside the game. sound - The ogg music file to be played; Must be relative to mods/music or assets/music folders. volume - An optional parameter, The specified volume percent of the music; Goes from 0 to 1; Defualt value: 1. loop - An optional parameter, Whether the music will loop indefinitely; Default value: false. Control Sound/Music Functions stopSound(tag:String) Stops the sound from playing and removes it permanently. tag - The sound object tag name to be used. pauseSound(tag:String) Pauses the sound from playing. tag - The sound object tag name to be used. resumeSound(tag:String) Resumes the sound from pausing. tag - The sound object tag name to be used. Fade In/Out Functions soundFadeIn(tag:String, duration:Float, fromValue:Float = 0, toValue:Float = 1) Makes the sound fade-in at the start when of the sound. If you want the music to fade then leave tag parameter blank and not a nil value. This works with fading and property functions. tag - The sound object tag name to be used. If you want to fade the music leave the tag parameter blank, not a nil value. This will work on fade and volume/time functions. duration - The duration length of the sound to fade-in, from fromValue and toValue. fromValue - An optional parameter, The starting volume of the fade; Goes from 0 to 1; Defualt value: 0. toValue - An optional parameter, The ending volume of the fade; Goes from 0 to 1; Defualt value: 1. soundFadeOut(tag:String, duration:Float, toValue:Float = 0) Makes the sound fade-out at the end of the sound. tag - The sound object tag name to be used. duration - The duration length of the sound to fade-out, from toValue. toValue - An optional parameter, The ending volume of the fade; Goes from 0 to 1; Defualt value: 0. soundFadeCancel(tag:String) Cancels the sound fade. tag - The sound object tag name to be used. Property Setter/Getter Functions setSoundVolume(tag:String, value:Float) Sets the current volume of the sound object with a new value. tag - The sound object tag name to be used. value - The new sound volume value; Goes from 0 to 1. setSoundTime(tag:String, value:Float) Sets the current sound position of the sound object with a new value. tag - The sound object tag name to be used. value - The new sound position value. getSoundVolume(tag:String) Gets the current sound volume of the sound object current volume value; Returns a float number. tag - The sound object tag name to be used. getSoundTime(tag:String) Gets the current sound position of the sound object current position value; Returns a float number. tag - The sound object tag name to be used.

sound and music functions的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
水富县| 红原县| 桂东县| 应城市| 瓮安县| 洛南县| 黎平县| 泸水县| 广南县| 邻水| 京山县| 丰台区| 永年县| 塘沽区| 阿瓦提县| 泰顺县| 乌拉特中旗| 垦利县| 南川市| 临颍县| 大连市| 镇雄县| 奉新县| 临邑县| 游戏| 揭阳市| 霸州市| 大新县| 肇东市| 建平县| 楚雄市| 大田县| 巴林左旗| 安岳县| 固安县| 鸡西市| 孟村| 怀宁县| 东城区| 三都| 沂水县|