home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 112
/
jogo-disk-112.iso
/
Games
/
fish_water_challenge.swf
/
scripts
/
DefineSprite_78
/
frame_40
/
DoAction.as
Wrap
Text File
|
2010-07-14
|
889b
|
35 lines
loop = "1";
collision = "0";
while(mounds >= loop)
{
if(getProperty("/mound" add loop, _X) < getProperty("/riff", _X) + riffwidth and getProperty("/riff", _X) < getProperty("/mound" add loop, _X) + moundwidth and getProperty("/mound" add loop, _Y) < getProperty("/riff", _Y) + riffheight and getProperty("/riff", _Y) < getProperty("/mound" add loop, _Y) + moundheight and getProperty("/riff", _currentframe) < "30")
{
collision = "1";
}
loop += "1";
}
if(collision == "1" and eval("/:dir") == "0")
{
tellTarget("/riff")
{
gotoAndStop("jumpl");
play();
}
}
else if(collision == "1" and eval("/:dir") == "1")
{
tellTarget("/riff")
{
gotoAndStop("jumps");
play();
}
}
else if(collision == "1" and eval("/:dir") == "2")
{
tellTarget("/riff")
{
gotoAndStop("jumpr");
play();
}
}