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
|
{
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_saving_anim: "[animation('saved'),music('SavedGame.ogg')]",
on_end_saved_anim: "animation('saved')",
solid_area: [1,1,19,40],
animation: [
{
id: "normal",
image: "props/items.png",
rect: [132,2,151,62],
pad: 3,
frames: 1,
duration: 30,
},
{
id: "saving",
image: "props/items.png",
rect: [155,2,174,62],
pad: 3,
frames: 2,
duration: 10,
},
{
id: "saved",
image: "props/items.png",
rect: [178,2,197,62],
pad: 3,
frames: 1,
duration: 100,
},
],
}
|