home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Aventura
/
Kung_Fu.swf
/
scripts
/
DefineSprite_275_Baddie5
/
frame_249
/
DoAction.as
< prev
Wrap
Text File
|
2007-09-26
|
344b
|
21 lines
function move()
{
walk1 = 1.5;
walk2 = 1.5;
point = new object();
point.x = _root.Guy._x;
point.y = _root.Guy._y;
_root.bg.globalToLocal(point);
if(_X < point.x)
{
_xscale = 100;
this._x += walk1;
}
if(_X > point.x)
{
_xscale = -100;
this._x -= walk2;
}
}
move();