home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
Titans
/
robin.swf
/
scripts
/
DefineSprite_240_hc
/
frame_2
/
DoAction.as
Wrap
Text File
|
2010-05-15
|
990b
|
53 lines
xs = -2;
ys = 1;
bomdelay = 10;
r.score += 5 * r.point;
d = bomdelay;
n = 1;
shake = 6;
h.h.k.rot = 15;
stopgun();
onenterframe = function()
{
_Y = _Y + (ys + 0.5 * random(shake));
_X = _X + (xs - random(shake));
_rotation = random(shake);
if(!shake)
{
shake--;
}
if(xs < 15)
{
xs *= 1.1;
}
ys *= 1.02;
if(_X < -250)
{
r.zbigexplosion.start();
r.enemy.removevalue(_name);
r.zhc.stop();
delete onenterframe;
this.removeMovieClip();
stop();
}
d--;
if(!d)
{
if(n < 3)
{
d = bomdelay + random(10);
duplicateMovieClip("ex","ex" + n,16384 + n);
this["ex" + n]._xscale = sk;
this["ex" + n]._yscale = sk;
this["ex" + n]._x = -20 + random(100);
this["ex" + n]._y = - random(40);
n++;
}
}
if(d == 1 or d == 4 or d == 7)
{
r.zboom2.start();
}
};
stop();