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.
AM2R-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oMZeta_Draw_0.gml

26 lines
791 B

if (oControl.mod_fusion == 1 || oControl.MonsterPalettesFusionOnly == 0)
{
if (global.shaders_compiled && os_type != os_android)
pal_swap_set(oControl.ZetaPalette, 1, 0)
}
if surface_exists(surf)
{
if (!flashing)
draw_surface_ext(surf, (x - surf_x), (y - surf_y), 1, 1, 0, image_blend, 1)
else
{
draw_surface_ext(surf, (x - surf_x), (y - surf_y), 1, 1, 0, make_color_rgb((255 - (fxtimer * 63)), (255 - (fxtimer * 63)), (255 - (fxtimer * 63))), 1)
draw_set_blend_mode(bm_add)
repeat (2)
draw_surface_ext(surf, (x - surf_x), (y - surf_y), 1, 1, 0, -1, (1 - (fxtimer * 0.25)))
draw_set_blend_mode(bm_normal)
}
}
else
{
surface_free(surf)
surf = surface_create(160, 128)
event_user(10)
}
shader_reset()