You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2Rogue/Export_Code/gml_Object_oGunzoo_Draw_0.gml

42 lines
1.7 KiB

if (!flashing)
{
if (turning == 0)
{
draw_sprite_ext(sprite_index, -1, x, y, facing, 1, image_angle, -1, 1)
if (phase == 0)
draw_sprite_ext(sGunzooArmor1, -1, x, (y - aoffset), facing, 1, image_angle, -1, 1)
if (phase <= 1)
draw_sprite_ext(sGunzooArmor2, -1, (x + aoffset), y, facing, 1, image_angle, -1, 1)
}
if (turning > 0)
draw_sprite_ext(sGunzooTurn, -1, x, y, facing, 1, image_angle, -1, 1)
}
if flashing
{
if (turning == 0)
{
draw_sprite_ext(sprite_index, -1, x, y, facing, 1, image_angle, make_color_rgb(80, 80, 80), 1)
if (phase == 0)
draw_sprite_ext(sGunzooArmor1, -1, x, (y - aoffset), facing, 1, image_angle, make_color_rgb(80, 80, 80), 1)
if (phase <= 1)
draw_sprite_ext(sGunzooArmor2, -1, (x + aoffset), y, facing, 1, image_angle, make_color_rgb(80, 80, 80), 1)
}
if (turning > 0)
draw_sprite_ext(sGunzooTurn, -1, x, y, facing, 1, image_angle, make_color_rgb(80, 80, 80), 1)
draw_set_blend_mode(bm_add)
repeat (3)
{
if (turning == 0)
{
draw_sprite_ext(sprite_index, -1, x, y, facing, 1, image_angle, -1, (1 - (fxtimer * 0.25)))
if (phase == 0)
draw_sprite_ext(sGunzooArmor1, -1, x, (y - aoffset), facing, 1, image_angle, -1, (1 - (fxtimer * 0.25)))
if (phase <= 1)
draw_sprite_ext(sGunzooArmor2, -1, (x + aoffset), y, facing, 1, image_angle, -1, (1 - (fxtimer * 0.25)))
}
if (turning > 0)
draw_sprite_ext(sGunzooTurn, -1, x, y, facing, 1, image_angle, -1, (1 - (fxtimer * 0.25)))
}
draw_set_blend_mode(bm_normal)
}