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
|
{
id: "bubbling_pot",
ignore_collide: true,
zorder: -1,
on_create: "if(is_bubbling,animation('bubble'),animation('normal'))",
on_end_normal_anim: "animation('normal')",
on_end_bubble_anim: "animation('bubble')",
on_puff: "if(1d2=2, [add_object(puff), set(puff.rotation, 1d360)] where puff = object('steam_particle',midpoint_x-5,y+5,choose([-1,1])))",
editor_info: {
category: "decor, general",
var: {
name: "is_bubbling",
value: 1,
type: "boolean",
},
},
animation: [
{
id: "normal",
image: "props/furniture.png",
rect: [131,81,148,95],
collide: [0,0,10,13],
frames: 1,
duration: 100,
pad: 0,
},
{
id: "bubble",
image: "props/furniture.png",
rect: [77,96,94,110],
collide: [0,0,10,13],
frames: 8,
frames_per_row: 4,
duration: 6,
pad: 0,
events: "2,26:puff",
},
],
}
|