Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task TestingLoopMusic(n) {
- let looppoints = [
- [0,0]
- ,[0,0]
- ,[113.140471,236.569398]
- ,[2.760588,80.932428]
- ,[61.801262,165.483331]
- ,[4.014400,68.011588]
- ,[0,0]
- ,[0,0]
- ,[0,0]
- ,[0,0]
- ,[30.014716,180.264536]
- ,[0,0]
- ,[0,124.051090]
- ,[5.716064,191.429248]
- ];
- let objA = ObjSound_Create;
- ObjSound_Load(objA, GetCurrentScriptDirectory~"bgm"~IntToString(n)~".wav");
- ObjSound_SetVolumeRate(objA, 100);
- ObjSound_SetLoopEnable(objA, true);
- ObjSound_SetSoundDivision(objA, SOUND_BGM);
- ObjSound_SetLoopTime(objA, looppoints[n][0], looppoints[n][1]);
- ObjSound_Play(objA);
- while(!Obj_IsDeleted(objEnemy)) {
- yield;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement