Advertisement
Mewkyuu

Untitled

Aug 22nd, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. task TestingLoopMusic(n) {
  2. let looppoints = [
  3. [0,0]
  4. ,[0,0]
  5. ,[113.140471,236.569398]
  6. ,[2.760588,80.932428]
  7. ,[61.801262,165.483331]
  8. ,[4.014400,68.011588]
  9. ,[0,0]
  10. ,[0,0]
  11. ,[0,0]
  12. ,[0,0]
  13. ,[30.014716,180.264536]
  14. ,[0,0]
  15. ,[0,124.051090]
  16. ,[5.716064,191.429248]
  17. ];
  18. let objA = ObjSound_Create;
  19. ObjSound_Load(objA, GetCurrentScriptDirectory~"bgm"~IntToString(n)~".wav");
  20. ObjSound_SetVolumeRate(objA, 100);
  21. ObjSound_SetLoopEnable(objA, true);
  22. ObjSound_SetSoundDivision(objA, SOUND_BGM);
  23. ObjSound_SetLoopTime(objA, looppoints[n][0], looppoints[n][1]);
  24. ObjSound_Play(objA);
  25. while(!Obj_IsDeleted(objEnemy)) {
  26. yield;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement