home *** CD-ROM | disk | FTP | other *** search
- xs = 0.7 * r.espeed;
- y = _Y;
- name = "bonus";
- if(_parent._name == "enemymap")
- {
- initme();
- }
- else
- {
- onenterframe = function()
- {
- _X = _X + xs;
- _Y = y + math.sin(a++ * 0.1) * 100;
- if(hittest(s.z))
- {
- r.score += 10 * r.point;
- r.zbonus.start();
- r.energy = r.energymax;
- r.bar.barfr.play();
- this.removeMovieClip();
- }
- if(_X < -30)
- {
- this.removeMovieClip();
- }
- };
- }
- stop();
-