home *** CD-ROM | disk | FTP | other *** search
- function escapepodClass()
- {
- }
- escapepodClass.prototype = new MovieClip();
- escapepodClass.prototype.onLoad = function()
- {
- this.x = this._x;
- this.y = this._y;
- this.state = "normal";
- };
- escapepodClass.prototype.onEnterFrame = function()
- {
- if(_root.state == "paused")
- {
- }
- if(_root.state == "playing")
- {
- if(this.state == "normal")
- {
- if(this.hitTest(_root.player) == true)
- {
- podCollected();
- this.state = "start collected";
- escapeCSnd.start();
- }
- }
- if(this.state == "start collected")
- {
- this.counter = 15;
- this.state = "collected wait";
- this.gotoAndPlay(2);
- }
- if(this.state == "collected wait")
- {
- this.counter--;
- this._alpha -= 6;
- if(this.counter < 1)
- {
- removeMovieClip(this);
- }
- }
- }
- };
- Object.registerClass("escapePod",escapepodClass);
-