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
|
[object_type]
has_feet="no"
hitpoints="5"
id="large_breakable_block"
on_collide_object_body="if(collide_with_area = 'attack',
if(not (me in collide_with.tmp.already_hit), [set(collide_with.tmp, 'already_hit', collide_with.tmp.already_hit + [me]),
add(hitpoints, -1),
if(hitpoints > 1, set(animation, 'normal' + (hitpoints-1)))]))"
on_die="[score(level,10),sound('BlockBreak.ogg'), map([0] * 30, spawn('breakable_block_particle', x + 1d30, y + 1d30, facing))]"
solid_area="0,0,47,47"
zorder="-1"
[animation]
body_area="all"
duration="1000000"
frame_info="0,0,0,0,120,423,48,48"
frames="1"
id="normal5"
image="compiled-1.png"
rect="120,423,167,470"
[/animation]
[animation]
body_area="all"
duration="1000000"
frame_info="0,0,0,0,924,372,48,48"
frames="1"
id="normal4"
image="compiled-1.png"
rect="924,372,971,419"
[/animation]
[animation]
body_area="all"
duration="1000000"
frame_info="0,0,0,0,756,372,48,48"
frames="1"
id="normal3"
image="compiled-1.png"
rect="756,372,803,419"
[/animation]
[animation]
body_area="all"
duration="1000000"
frame_info="0,0,0,0,708,372,48,48"
frames="1"
id="normal2"
image="compiled-1.png"
rect="708,372,755,419"
[/animation]
[animation]
body_area="all"
duration="1000000"
frame_info="0,0,0,0,972,372,48,48"
frames="1"
id="normal1"
image="compiled-1.png"
rect="972,372,1019,419"
[/animation]
[/object_type]
|