t += 1; if (instance_exists(target)) { if (t == 1) { x = target.x; y = target.y; image_xscale = target.image_xscale; image_yscale = target.image_yscale; sprite_index = target.sprite_index; sw = sprite_width; sh = sprite_height; herocheck = 0; if (target.object_index == obj_herokris_ch1) herocheck = 1; if (target.object_index == obj_herosusie_ch1) herocheck = 1; if (target.object_index == obj_heroralsei_ch1) herocheck = 1; if (herocheck == 1) { sw = target.mywidth; sh = target.myheight; } with (target) scr_oflash_ch1(); } if (t >= 1 && t <= 5) { for (i = 0; i < 2; i += 1) { star[starcount] = instance_create_ch1(x + random(sw), y + random(sh), obj_marker_ch1); with (star[starcount]) { image_angle = random(360); depth = -10; image_xscale = 2; image_yscale = 2; image_alpha = 2; image_speed = 0.25; hspeed = 2 - random(2); vspeed = -3 - random(2); friction = 0.2; } star[starcount].sprite_index = particlesprite; star[starcount].image_blend = particlecolor; starcount += 1; } } if (t >= 5 && t <= 30) { for (i = 0; i < starcount; i += 1) { with (star[i]) { image_angle -= 10; image_alpha -= 0.1; if (image_alpha <= 0) instance_destroy(); } } if (t >= 30) instance_destroy(); } } else { for (i = 0; i < starcount; i += 1) { with (star[i]) instance_destroy(); } instance_destroy(); }