1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
[object_type]
id="current_generator"
ignore_collide="true"
on_create="[set(alpha,0),
set(current_generator, rect_current(zone_x1, zone_y1 ,abs(zone_x1 - zone_x2) ,abs(zone_y1 - zone_y2) , current_vel_x, current_vel_y, strength)),
add_particles('particles'),
fire_event('setup_particles')]"
on_end_anim="animation('normal')"
on_setup_particles="[
set(particles.velocity_x, current_vel_x*10),
set(particles.velocity_y, current_vel_y*10),
set(particles.min_x, min(zone_x1, zone_x2) - x),
set(particles.max_x, max(zone_x1, zone_x2) - x),
set(particles.min_y, min(zone_y1, zone_y2) - y),
set(particles.max_y, max(zone_y1, zone_y2) - y)
]"
zorder="50"
[animation]
duration="1000"
frame_info="0,0,2,1,224,997,26,27"
frames="1"
id="normal"
image="compiled-1.png"
rect="224,997,251,1024"
[/animation]
[particle_system]
id="particles"
spawn_rate="3000"
time_to_live="50"
type="simple"
[animation]
accel_y="-1"
duration="10"
frame_info="1,1,2,1,318,5,1,2,2,1,1,1,319,5,1,2,1,2,2,1,320,5,1,1,1,1,2,2,321,5,1,1,2,1,1,2,322,5,1,1"
frames="5"
id="sparkle"
image="compiled-0.png"
rect="317,4,320,7"
scale="2"
[/animation]
[/particle_system]
[/object_type]
|