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
|
{
id: "secret_passage_controller",
ignore_collide: true,
hidden_in_game: true,
on_start_level: "set(activation_area, [min(zone_x1,zone_x2) -200, min(zone_y1,zone_y2) -200, abs(zone_x1-zone_x2) +200, abs(zone_y1-zone_y2) +200])",
on_load: "[fire_event('level_tiles_refreshed'),set(activation_area, [min(zone_x1,zone_x2) -200, min(zone_y1,zone_y2) -200, abs(zone_x1-zone_x2) +200, abs(zone_y1-zone_y2) +200])]",
on_level_tiles_refreshed: "set_solid(zone_x1, zone_y1, zone_x2, zone_y2, false)",
on_end_anim: "animation('normal')",
zorder: 50,
editor_info: {
category: "controllers",
var: [
{
name: "zone_x1",
type: "x",
value: "x",
},
{
name: "zone_x2",
type: "x",
value: "x+200",
},
{
name: "zone_y1",
type: "y",
value: "y",
},
{
name: "zone_y2",
type: "y",
value: "y+200",
},
],
},
animation: {
id: "normal",
image: "effects/particles.png",
x: 179,
y: 73,
w: 28,
h: 28,
frames: 1,
duration: 1000,
},
}
|