home *** CD-ROM | disk | FTP | other *** search
- class illusoft.GameTile002 extends illusoft.GameTile
- {
- var levelComplete;
- function GameTile002(id, dEngine, character, game, gamemc, nextLevel)
- {
- super(id,dEngine,character,game,gamemc,nextLevel);
- }
- function Update(x)
- {
- super.Update(x);
- if(!this.levelComplete)
- {
- if(x > 0 && x < 805)
- {
- _global.sounds.LoopSound("jetstream",60);
- }
- else
- {
- _global.sounds.FadeVolume("jetstream",false,false);
- }
- }
- }
- function Close()
- {
- _global.sounds.FadeVolume("jetstream",false,false);
- super.Close();
- }
- function LevelComplete()
- {
- this.levelComplete = true;
- _global.sounds.FadeVolume("jetstream",false,false);
- }
- function Init()
- {
- super.Init();
- _global.sounds.StartMusic("loop1");
- }
- }
-