scr_platswap_init(self, 2); init = 0; flower = -4; squishtimer = 0; wants_respawn = false; y_anchor = y; remove_flower = function() { has_flower = false; with (flower) instance_destroy(); }; if (image_xscale > 2) sprite_index = spr_blue_platform_long; else sprite_index = spr_blue_platform_small; if (instance_exists(obj_dw_fcastle_yellowblue)) { if (sprite_index == spr_blue_platform_long) sprite_index = spr_blue_platform_long_invcolor; if (sprite_index == spr_blue_platform_small) sprite_index = spr_blue_platform_small_invcolor; } scr_darksize(); sinertimer = 0; siner_timer_offset = random_range(0, 60); platform = instance_create(x - (40 * image_xscale), y - (20 * image_xscale), (image_angle == 0) ? obj_plat_movingplat : obj_plat_movingblock); platform.image_xscale = image_xscale; if (sprite_index == spr_blue_platform_long) platform.image_xscale *= 3; if (sprite_index == spr_blue_platform_long_invcolor) platform.image_xscale *= 3; platform.visible = false; platform.movetype = -1; landed = false; if (image_angle != 0) { } image_speed = 0; is_being_shot = false; has_bullets = image_index; explodetimer = 0; active_timer = 0; has_active_plat = true; custom_landed = false; was_touched = false; chargesound = -4; stop_sound = function() { if (chargesound != -4) { snd_stop(chargesound); chargesound = -4; } }; get_shot = function() { explodetimer = 30; is_being_shot = true; chargesound = snd_loop(390, 0.1, 0.5); }; restore_cloud = function() { stop_sound(); if (visible) exit; init = 0; wants_respawn = false; platform = instance_create(x - (40 * image_xscale), y - (20 * image_xscale), (image_angle == 0) ? obj_plat_movingplat : obj_plat_movingblock); platform.image_xscale = image_xscale; if (sprite_index == spr_blue_platform_long) platform.image_xscale *= 3; if (sprite_index == spr_blue_platform_long_invcolor) platform.image_xscale *= 3; platform.visible = false; platform.movetype = -1; has_active_plat = true; explodetimer = 0; active_timer = 0; is_being_shot = false; landed = false; squishtimer = 0; image_blend = c_white; var xs = image_xscale; var ys = image_yscale; visible = true; image_xscale = 0; image_yscale = 0; scr_lerpvar("image_xscale", image_xscale, xs, 15, -1, "out"); scr_lerpvar("image_yscale", image_yscale, ys, 25, -1, "out"); }; destroy_platform = function() { visible = 0; stop_sound(); was_touched = false; with (platform) scr_doom(self, 3); with (flower) instance_destroy(); };