Advertisement
Jousway

Lua 2 bg sounds pause and loop

Jul 29th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. local t = Def.ActorFrame {
  2.     --removed rest of the code above here because its only related to the background
  3.     --moving animeation and not related to the sound pause and and loop system
  4.  
  5.     --Background Music from start to loop
  6.     LoadActor("opening start.ogg")..{
  7.         InitCommand=cmd(queuecommand,"First";sleep,13.598;queuecommand,"Second");
  8.         FirstCommand=cmd(play);
  9.         SecondCommand=cmd(Pause);
  10.     };
  11.     LoadActor("opening (loop).ogg")..{
  12.         InitCommand=cmd(queuecommand,"First";sleep,13.598;queuecommand,"Second");
  13.         FirstCommand=cmd(Pause);
  14.         SecondCommand=cmd(play);
  15.     };
  16. };
  17.  
  18. return t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement