home *** CD-ROM | disk | FTP | other *** search
- id = _name.substring(1,2);
- if(id > _root.players)
- {
- _Y = -999;
- stop();
- }
- else
- {
- ltxt = "Player " + id + " Life:";
- if(_root.players == 1)
- {
- if(_root.player[id].lives < 0)
- {
- lives = "Game Over";
- }
- else
- {
- lives = "Lives: " + _root.player[id].lives;
- }
- score = "Score: " + _root.player[id].score;
- }
- else
- {
- if(_root.player[id].vspoints < 0)
- {
- score = "Dead...";
- }
- else
- {
- score = "Pills: " + _root.player[id].vspoints;
- }
- lives = "Wins: " + _root.player[id].score;
- }
- live = _root.player[id].life / 720 * 100;
- if(live > 100)
- {
- live = 100;
- }
- life._width = live;
- if(_root.clock == 1 and _root.player[id].life > 0)
- {
- _root.player[id].life -= 2;
- }
- else if(_root.clock == 1 and _root.player[id].speed > 0)
- {
- _root.player[id].speed = 0;
- }
- }
-