6 |
alarm[0] = 15;gml_Object_obj_battle_enemy_attack_ceroba_phase_2_p2_obstacle_spawner_Alarm_0.gmlif (live_call())
return global.live_result;
var battle_box = 3154;
var side = choose(1, 2, 3);
var xx = battle_box.bbox_left + 16;
var xx2 = battle_box.bbox_right - 16;
var xx3 = battle_box.x;
var yy = battle_box.bbox_top - 16;
var obstacle1 = 248;
var obstacle2 = 248;
var obstacle3 = 248;
var obstacle_speed = 5;
if (global.hotland_flag[2] == 3)
obstacle_speed = 6;
switch (side)
{
case 1:
obstacle1 = 3120;
break;
case 2:
obstacle2 = 3120;
break;
case 3:
obstacle3 = 3120;
break;
}
instance_create_depth(xx, yy, -50, obstacle1);
instance_create_depth(xx2, yy, -50, obstacle2);
instance_create_depth(xx3, yy, -50, obstacle3);
with (obstacle1)
{
direction = 270;
speed = obstacle_speed;
}
with (obstacle2)
{
direction = 270;
speed = obstacle_speed;
}
with (obstacle3)
{
direction = 270;
speed = obstacle_speed;
}
alarm[0] = obstacle_offset; |