var blend = #010000; var yoffset = 0; if (con == -1) { yoffset = 0; blend = 0.4 - (0.2 * array_get(scr_platswap_yscale(), 0)); } if (con == 0) { yoffset = 2; blend = 0.9; } if (con == 1) { yoffset = 0; blend = 0.7; } if (con == 2) { yoffset = 10 * array_get(scr_platswap_yscale(), 1); blend = #010000; } image_blend = merge_color(c_black, c_white, blend); draw_sprite_ext(sprite_index, 0, x, y, image_xscale, (image_yscale * yoffset) / 20, 0, image_blend, 1); draw_sprite_ext(sprite_index, 1, x, y + (20 * image_yscale) + (yoffset * image_yscale), image_xscale, -image_yscale, 0, image_blend, 1);