home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 45
/
Freelog045.iso
/
Bas
/
Inutilitaire
/
Cat
/
0013.exe
/
scripts
/
frame_32
/
DoAction.as
Wrap
Text File
|
2003-05-05
|
2KB
|
93 lines
num = "1";
while("2" >= num)
{
cat_check = "cat" add num;
tellTarget(cat_check)
{
if(eval("on") == "0" and random("10") == "0")
{
set("on","1");
gotoAndStop("start");
play();
}
}
num += "1";
}
setProperty("/catapult", _X, getProperty("/crosshair", _X));
setProperty("/catapult", _Y, getProperty("/crosshair", _Y) + "90");
if(score < "5000")
{
rate = "5" + int(score / "500");
}
else
{
rate = "15";
}
if(splat eq "cat1")
{
duplicateMovieClip("/blood","blood" add splatnum,splatnum + 16384);
setProperty("/blood" add splatnum, _X, getProperty("/cat1", _X));
setProperty("/blood" add splatnum, _Y, getProperty("/cat1", _Y));
if("15" < splatnum)
{
removeMovieClip("blood" add (splatnum - "15"));
}
splatnum += "1";
splat = "0";
}
else if(splat eq "cat2")
{
duplicateMovieClip("/blood","blood" add splatnum,splatnum + 16384);
setProperty("/blood" add splatnum, _X, getProperty("/cat2", _X));
setProperty("/blood" add splatnum, _Y, getProperty("/cat2", _Y));
if("15" < splatnum)
{
removeMovieClip("blood" add (splatnum - "15"));
}
splatnum += "1";
splat = "0";
}
if("10" < missiles)
{
missiles = "10";
}
if(score < "0")
{
score = "0";
}
if(missilecheck == "1")
{
set("../:missilecheck","0");
if("0" >= missiles)
{
gotoAndPlay(35);
}
}
tellTarget("/missiles")
{
gotoAndStop("11" - eval("../:missiles"));
}
tellTarget("/power")
{
if("70" < eval("../:power"))
{
gotoAndStop(70);
}
else
{
gotoAndStop(eval("../:power"));
}
}
if(spike1 == "1" and spike2 == "1" and spike3 == "1" and spike4 == "1")
{
spike1 = "0";
spike2 = "0";
spike3 = "0";
spike4 = "0";
score += "2000";
tellTarget("/torture")
{
gotoAndPlay(2);
}
}