S
santeri kalliomaki
Guest
I dont know how to collide with my "gun"
draw event code:
if gun !=-1{
draw_sprite_ext(spr_sword, gun, x + lengthdir_x(4, point_direction(x, y, oBody_parts.x, oBody_parts.y)), y + 4 + lengthdir_y(4, point_direction(x, y, oBody_parts.x, oBody_parts.y)), 1, 1, point_direction(x, y, oBody_parts.x, oBody_parts.y)+90, c_white, 1);}
draw event code:
if gun !=-1{
draw_sprite_ext(spr_sword, gun, x + lengthdir_x(4, point_direction(x, y, oBody_parts.x, oBody_parts.y)), y + 4 + lengthdir_y(4, point_direction(x, y, oBody_parts.x, oBody_parts.y)), 1, 1, point_direction(x, y, oBody_parts.x, oBody_parts.y)+90, c_white, 1);}