if (!init) { rate = r_rate; timer = r_timer; dir = r_dir; movespeed = r_movespeed; lifetime = r_lifetime; init = 1; } if (active) { if (global.interact == 0) { timer++; if ((timer % rate) == 0) { var xoff = floor(random_range(-r_spawn_area_width * 0.5, r_spawn_area_width * 0.5)) * 40; var yoff = floor(random_range(-r_spawn_area_height * 0.5, r_spawn_area_height * 0.5)) * 40; var bul = instance_create(x + 20 + xoff, y + 20 + yoff, obj_climb_flamefalling); bul.dir = dir; with (bul) scr_depth(); bul.movespeed = movespeed; bul.lifetime = lifetime; bul.bounceshift = r_bounceshift; bouncedir = -bouncedir; bul.bouncedir = bouncedir; } } }