home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 35
/
jogo-disk-35.iso
/
Games
/
red_beard.swf
/
scripts
/
DefineSprite_86
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-02-27
|
1KB
|
31 lines
if(getProperty("_root.BackgroundMC", _X) + _X > 0 and getProperty("_root.BackgroundMC", _X) + _X < 450 and getProperty("_root.BackgroundMC", _Y) + _Y > 0 and getProperty("_root.BackgroundMC", _Y) + _Y < 300)
{
if(eval("_root.codeMC:state") != "dead")
{
this;
if(hittest(_root.playerMC))
{
_root.gem.start();
_root.goal.start();
trace(eval("_root.codeMC:Testscore"));
set("_root.codeMC:blueSwitch","off");
set("_root.codeMC:redSwitch","off");
set("_root.codeMC:purpleSwitch","off");
set("_root.codeMC:Testscore",0);
set("_root.codeMC:score",eval("_root.codeMC:score") + eval("_root.codeMC:bonusScore"));
setProperty("_root.playerMC", _X, 171.2);
setProperty("_root.playerMC", _Y, 97);
setProperty("_root.backgroundMC", _X, 0);
setProperty("_root.backgroundMC", _Y, 0);
set("_root.codeMC:redgems",0);
set("_root.codeMC:bluegems",0);
set("_root.codeMC:purplegems",0);
set("_root.codeMC:colourActive","none");
set("_root.codeMC:currentGround",500);
_root.LevelboardMC.gotoAndPlay("start");
set("_root.CodeMC:tutorial","off");
_root.backgroundMC.gotoAndPlay(eval("_root.codeMC:nextlevel"));
}
}
}