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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
[object_type]
friction="100"
id="points_cube"
on_acquired="[score(level,points_value), set(level.player.vars.powerup_time, level.player.vars.powerup_time + level.player.consts.powerup_recharge), map([0,0,0,0],spawn('points_sparkle',midpoint_x + 1d40-20,midpoint_y + 1d40-20,0)),sound('HeartPickUp.ogg'),die()]"
on_collide="[set(velocity_y, velocity_y/2), set(velocity_x, -velocity_x),animation('flash')]"
on_collide_feet="[set(velocity_y, -velocity_y), set(velocity_x, (velocity_x*9)/10 + (velocity_y*slope_standing_on)/90),animation('flash')]"
on_collide_object_item="if(collide_with.player,fire_event('acquired'))"
on_create="[set(vars.time_to_live, level.cycle + vars.time_to_live),add_particles('particles')]"
on_end_anim="animation('normal')"
on_process="set(brightness,(wave(cycle*30)+1000)/3 + 255)"
on_timer="[if(level.cycle > vars.time_to_live, die())]"
solid_dimensions="level_only"
timer_frequency="50"
[vars]
points_value="5"
time_to_live="500"
[/vars]
[animation]
accel_y="80"
duration="4"
frame_info="2,2,2,1,740,458,10,11,2,2,1,0,750,458,11,12,2,2,2,0,761,458,10,12,2,2,2,0,771,458,10,12,2,2,2,0,781,458,10,12,2,2,2,0,791,458,10,12,2,2,2,0,801,458,10,12,2,2,2,0,811,458,10,12,1,2,2,0,821,458,11,12"
frames="9"
frames_per_row="3"
id="normal"
image="compiled-2.png"
item_area="all"
rect="738,456,751,469"
solid_area="4,4,8,8"
[/animation]
[animation]
accel_y="80"
duration="4"
frame_info="1,2,1,0,728,458,12,12"
frames="1"
id="flash"
image="compiled-2.png"
item_area="all"
rect="727,456,740,469"
solid_area="4,4,8,8"
[/animation]
[particle_system]
id="particles"
max_x="20"
max_y="20"
min_x="-20"
min_y="-20"
spawn_rate="200"
time_to_live="20"
type="simple"
[animation]
duration="6"
frame_info="1,1,1,1,227,0,9,9,2,2,2,2,236,0,7,7,3,3,3,3,243,0,5,5,4,4,4,4,248,0,3,3"
frames="4"
id="sparkle"
image="compiled-0.png"
rect="226,-1,236,9"
[/animation]
[animation]
duration="4"
frame_info="2,2,2,2,303,0,7,7,3,3,3,3,310,0,5,5,4,4,4,4,315,0,3,3"
frames="3"
id="sparkle"
image="compiled-0.png"
rect="301,-2,311,8"
[/animation]
[animation]
duration="6"
frame_info="3,3,3,3,337,0,5,5,4,4,4,4,342,0,3,3"
frames="2"
id="sparkle"
image="compiled-0.png"
rect="334,-3,344,7"
[/animation]
[animation]
duration="6"
frame_info="4,4,4,4,122,11,3,3"
frames="1"
id="sparkle"
image="compiled-0.png"
rect="118,7,128,17"
[/animation]
[/particle_system]
[/object_type]
|