//----------------------------------------------------------------------- // ■ 効果音定義 //----------------------------------------------------------------------- function DefinitionSE(Path) { let se = ObjSound_Create(); ObjSound_Load(se,Path); ObjSound_SetLoopEnable(se,false); ObjSound_SetSoundDivision(se,SOUND_SE); return se; } //----------------------------------------------------------------------- ↓ //======================================================================= // ■ 効果音パス //----------------------------------------------------------------------- let se_shot01 = DefinitionSE(csd~"../se/se_shot01.ogg"); . . . //======================================================================= ↓ //----------------------------------------------------------------------- // ■ 効果音再生(Pathに最上部の変数(?)が入ります) //----------------------------------------------------------------------- function PlaySound(Path,SetVolume) { let volume = 100-100*((100-(SetVolume*System_SEVolume))*0.01)^2; ObjSound_SetVolumeRate(Path,volume); ObjSound_Play(Path); } //-----------------------------------------------------------------------