direction=point_direction(x,y,hero.x,hero.y)
dst = distance_to_object(hero)
if (dostalem < 5)
{
if ( dst < 150 && dst > 5 )
{
mp_potential_step(mouse_x,mouse_y,5,solid)
image_index = direction * image_number/360
}
else
{
image_speed=0
speed=0
}}
to musi działać!