Prościzna... :P
create:
bBij = 1;
step:
if( bBij )
{
if( distance_to_object( ObjBohater ) > 5 )
{
direction = point_direction( x, y, ObjBohater.x, ObjBohater.y );
speed = 3;
}
else
{
//akcja bicia
alarm[0] = random( 60 ) + 60;
bBij = 0;
}
}
else
{
speed = -3;
}
alarm0:
bBij = 1;
:]