if (obj_time.left && debuggo == 1) { angle -= 8; if (control_check(1)) angle -= 16; if (control_check(0)) { simg = instance_create(x, y, obj_spearafterimage); simg.originx = x; simg.originy = y; simg.outx = x + lengthdir_x(320, angle + 8); simg.outy = y + lengthdir_y(320, angle + 8); simg.outx2 = x + lengthdir_x(320, angle - 40); simg.outy2 = y + lengthdir_y(320, angle - 40); simg.color = color; simg2 = instance_create(x, y, obj_spearafterimage2); simg2.angle = angle - 16; simg2.alpha -= 0.017; simg2.color = color; simg3 = instance_create(x, y, obj_spearafterimage2); simg3.angle = angle - 40; simg3.color = color; simg4 = instance_create(x, y, obj_spearafterimage2); simg4.angle = angle + 8; simg4.alpha -= 0.034; simg4.color = color; angle -= 40; } } if (obj_time.right && debuggo == 1) { angle += 8; if (control_check(1)) angle += 16; if (control_check(0)) { simg = instance_create(x, y, obj_spearafterimage); simg.originx = x; simg.originy = y; simg.outx = x + lengthdir_x(320, angle - 8); simg.outy = y + lengthdir_y(320, angle - 8); simg.outx2 = x + lengthdir_x(320, angle + 40); simg.outy2 = y + lengthdir_y(320, angle + 40); simg.color = color; simg2 = instance_create(x, y, obj_spearafterimage2); simg2.angle = angle + 16; simg2.alpha -= 0.017; simg2.color = color; simg3 = instance_create(x, y, obj_spearafterimage2); simg3.angle = angle + 40; simg3.color = color; simg4 = instance_create(x, y, obj_spearafterimage2); simg4.angle = angle - 8; simg4.alpha -= 0.034; simg4.color = color; angle += 40; } } siner += 1; y += (sin(siner / 15) * 0.3); angle += (sin(siner / 15) * 0.02); xhand1 = lengthdir_x(55, angle); yhand1 = lengthdir_y(55, angle); rdistx = x + (xhand1 * 2); rdisty = y + (yhand1 * 2); if (armtest == 1) { if (instance_exists(obj_asgoreb_body)) { point1y = obj_asgoreb_body.party[5] + 64 + obj_asgoreb_body.y; point1x = obj_asgoreb_body.partx[5] + 14 + obj_asgoreb_body.x; armlength = point_distance(point1x, point1y, x - xhand1, y - yhand1); armangle = point_direction(point1x, point1y, x - xhand1, y - yhand1); armsize = armlength / 40; if (armsize < 0.35) armsize = 0; draw_sprite_ext(spr_asgoreb_ballarm, 0, point1x, point1y, armsize * 2, 2, armangle, c_white, 1); point1y = obj_asgoreb_body.party[4] + 64 + obj_asgoreb_body.y; point1x = obj_asgoreb_body.partx[4] + 34 + obj_asgoreb_body.x; armlength = point_distance(point1x, point1y, rdistx, rdisty); if (armlength > 100) { armoff = (armlength - 100) / 2; rdistx = x + (lengthdir_x(55 - armoff, angle) * 2); rdisty = y + (lengthdir_y(55 - armoff, angle) * 2); armlength = point_distance(point1x, point1y, rdistx, rdisty); } armangle = point_direction(point1x, point1y, rdistx, rdisty); if (armangle > 100) point1y -= 12; armsize = armlength / 40; if (armsize < 0.6) armsize = 0; draw_sprite_ext(spr_asgoreb_ballarm, 0, point1x, point1y, armsize * 2, 2, armangle, c_white, 1); } } if (keyboard_check(ord("1")) && debuggo == 1) color = c_red; if (keyboard_check(ord("2")) && debuggo == 1) color = c_orange; if (keyboard_check(ord("3")) && debuggo == 1) color = make_color_rgb(90, 130, 255); draw_sprite_ext(sprite_index, image_index, x, y, 2, 2, angle, color, 1); draw_sprite_ext(spr_spearhandr, image_index, rdistx, rdisty, 2, 2, angle, c_white, 1); draw_sprite_ext(spr_spearhandl, image_index, x - xhand1, y - yhand1, 2, 2, angle, c_white, 1);