event_inherited(); scr_platswap_init(); scr_depth(); siner = 0; siner = random(600); blocktimer = 0; image_speed = 0; spec = 0; remdepth = depth; xstart += (0.5 * sprite_width); ystart += (0.75 * sprite_height); was_standing = false; shrink_current = 0; xscale_start = image_xscale; yscale_start = image_yscale; growsound = -4; con = 0; leaf_dir = 0; can_shrink = image_xscale < 2 && image_yscale < 2; platform = instance_create(x, y, obj_plat_floor); platform.x = x + 10; platform.image_xscale = 5; platform.visible = false; frontmarker1 = instance_create(x, y, obj_marker); with (frontmarker1) { sprite_index = other.sprite_index; image_index = 4; image_xscale = other.image_xscale; image_yscale = other.image_yscale; image_speed = 0; depth = other.depth - 1; } frontmarker2 = instance_create(x, y, obj_marker); with (frontmarker2) { sprite_index = other.sprite_index; image_index = 5; image_xscale = other.image_xscale; image_yscale = other.image_yscale; image_speed = 0; depth = other.depth - 2; } water = function(arg0) { if (!arg0) shrink_current = 0; if (!arg0 && image_xscale < 2) { if (growsound == -4) growsound = snd_loop(snd_chain_wave); x = lerp(xstart, xstart - (sprite_get_width(sprite_index) * 0.5), image_xscale); y = lerp(ystart, ystart - (sprite_get_height(sprite_index) * 0.75), image_yscale); image_xscale = scr_approach(image_xscale, 2, 0.01); image_yscale = scr_approach(image_yscale, 2, 0.01); snd_pitch(growsound, image_xscale / 2); snd_volume(growsound, 1, 1); } };