1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
[object_type]
id="max_heart_object"
on_acquired="[music_onetime('specialitem.ogg'), set(level.player.driver.max_hitpoints, level.player.driver.max_hitpoints + 1), set(level.player.driver, 'hitpoints', level.player.driver.hitpoints + 1), map([0,0,0,0,0,0,0,0,0,0],spawn('heart_sparkle',midpoint_x,midpoint_y,0)),
spawn('color_flash',x,y,0,[set(color_r,237),set('color_g',28),set('color_b',36)]),schedule(1,die()),
speech_dialog([~You have acquired a heart capsule.~,~Your maximum HP has increased by one!~])]"
on_collide_object_body="[if(collide_with.player,fire_event('acquired'))]"
on_end_normal_anim="animation('normal')"
on_end_touched_anim="die()"
respawns="no"
[animation]
body_area="all"
duration="100"
frame_info="2,2,2,2,719,369,36,19"
frames="1"
id="normal"
image="compiled-2.png"
rect="717,367,756,389"
reverse="yes"
[/animation]
[/object_type]
|