home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
Chip_2003-01_cd1.bin
/
oddech
/
bechpack
/
bechpack.exe
/
scripts
/
DefineSprite_559
/
frame_2
/
DoAction.as
< prev
Wrap
Text File
|
2002-10-29
|
611b
|
30 lines
if(Key.isDown(Key.RIGHT) and (eval("/:x") == 1 or eval("/:x") == 0))
{
if(eval("/:y") != 2)
{
setProperty("plane", _X, getProperty("plane", _X) + 10);
tellTarget("_root.car.plane")
{
gotoAndStop("right");
}
}
}
else if(Key.isDown(Key.LEFT) and (eval("/:y") == 2 or eval("/:y") == 0))
{
if(eval("/:x") != 1)
{
setProperty("plane", _X, getProperty("plane", _X) - 10);
tellTarget("_root.car.plane")
{
gotoAndStop("left");
}
}
}
else
{
tellTarget("plane")
{
gotoAndStop("straight");
}
}