if (!hit) exit; with (obj_plat_camera) { min_x = 0; max_x = room_width; } audio_stop_sound(snd_enemy_defeat_quick); snd_play(snd_enemy_defeat_quick); with (instance_create_depth(x, y, depth, obj_plat_vfx)) { sprite_index = spr_hit_vfx; image_speed = 1; } with (instance_create_depth(x, y, depth, obj_plat_vfx)) { sprite_index = spr_smokepuff; image_speed = 2; } with (obj_plat_follower) drop_off_platform_mode(true); scr_plat_hitstop_global(8); var snd = snd_play_pitch(snd_creepylaugh, 0.8); snd_pitch_time(snd, 0.4, 15); snd_volume(snd, 0, 30); with (obj_plat_bullet) { scr_doom(self, 30); scr_lerpvar("image_alpha", image_alpha, 0, 30); } with (instance_create_depth(x, y, depth, obj_flowerdie)) { speed = 12; amount = 12; } with (obj_plat_bullet) { hit = 1; instance_destroy(); }