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
|
[object_type]
id="save_lantern_object"
on_collide_object_body="if(collide_with.player,if(animation = 'normal', [animation('saving'),save_game()]))"
on_end_normal_anim="animation('normal')"
on_end_saved_anim="animation('saved')"
on_end_saving_anim="[animation('saved'),music('SavedGame.ogg')]"
solid_area="1,1,19,40"
[animation]
duration="30"
frame_info="1,1,1,21,1004,518,18,39"
frames="1"
id="normal"
image="compiled-1.png"
rect="1003,517,1022,577"
[/animation]
[animation]
duration="10"
frame_info="1,1,1,12,972,924,18,48,1,1,1,1,990,924,18,59"
frames="2"
id="saving"
image="compiled-0.png"
rect="971,923,990,983"
[/animation]
[animation]
duration="100"
frame_info="1,1,1,1,997,855,18,59"
frames="1"
id="saved"
image="compiled-0.png"
rect="996,854,1015,914"
[/animation]
[/object_type]
|