GML (left button)
if ( collision_line( x, y, x + lengthdir_x( 640, point_direction( x, y, mouse_x ,mouse_y ), x + lengthdir_y( 640, point_direction( x, y, mouse_x ,mouse_y ), oWrog, true, true ) )
{
//kolizja
}
zmienna x to x bohatera
zmienna y to y bohatera