1{ 2id: "smoke_generator", 3ignore_collide: true, 4 5hidden_in_game: true, 6on_create: "[add_particles('smoke')]", 7activation_border: 500, 8 9 10on_gust: "[set(smoke.accel_x,45),schedule(10d4,set(smoke.accel_x,1d6-1))]", 11timer_frequency: 20, 12on_timer: "if(smoke.accel_x < 40, set(smoke.accel_x,1d6-1))", 13on_end_anim: "animation('normal')", 14zorder: -5, 15editor_info: { 16 category: "controllers", 17}, 18animation: { 19 id: "normal", 20 image: "effects/particles.png", 21 x: 86, 22 y: 42, 23 w: 28, 24 h: 28, 25 frames: 1, 26 duration: 1000, 27}, 28particle_system: { 29 id: "smoke", 30 type: "simple", 31 spawn_rate: 600, 32 time_to_live: 300, 33 pre_pump_cycles: 200, 34 min_x: -20, 35 max_x: 20, 36 min_y: -14, 37 max_y: 14, 38 velocity_y: -200, 39 velocity_x: -100, 40 velocity_x_random: 200, 41 velocity_y_random: 400, 42 accel_x: 3, 43 accel_y: -10, 44 45 #color=255,255,255,255 46 delta_a: 1, 47 animation: { 48 id: "sparkle", 49 image: "effects/explosion.png", 50 x: 198, 51 y: 5, 52 w: 17, 53 h: 16, 54 pad: 3, 55 frames: 8, 56 frames_per_row: 2, 57 scale: 2, 58 duration: 40, 59 }, 60}, 61}