1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
var type = choose(1, 2, 3) |
5 |
switch type |
6 |
{ |
7 |
case 1: |
8 |
instance_create_depth((battle_box.bbox_left + 60), -50, -100, obj_battle_enemy_attack_asgore_sinusoid) |
9 |
instance_create_depth((battle_box.bbox_right - 60), -120, -100, obj_battle_enemy_attack_asgore_sinusoid) |
10 |
break |
11 |
case 2: |
12 |
instance_create_depth((battle_box.bbox_left + 40), (battle_box.bbox_top - 60), -100, obj_battle_enemy_attack_asgore_sinusoid) |
13 |
instance_create_depth(battle_box.x, (battle_box.bbox_top - 100), -100, obj_battle_enemy_attack_asgore_sinusoid) |
14 |
instance_create_depth((battle_box.bbox_right - 40), (battle_box.bbox_top - 140), -100, obj_battle_enemy_attack_asgore_sinusoid) |
15 |
break |
16 |
case 3: |
17 |
instance_create_depth((battle_box.bbox_right - 40), (battle_box.bbox_top - 60), -100, obj_battle_enemy_attack_asgore_sinusoid) |
18 |
instance_create_depth(battle_box.x, (battle_box.bbox_top - 100), -100, obj_battle_enemy_attack_asgore_sinusoid) |
19 |
instance_create_depth((battle_box.bbox_left + 40), (battle_box.bbox_top - 140), -100, obj_battle_enemy_attack_asgore_sinusoid) |
20 |
break |
21 |
} |
22 |
|
23 |
attack_count-- |
24 |
if (attack_count > 0) |
25 |
alarm[0] = 80gml_Object_obj_battle_enemy_attack_spawner_asgore_sinusoid_Alarm_0.gmlif live_call()
return global.live_result;
var battle_box = obj_dialogue_box_battle_transformation_any
var type = choose(1, 2, 3)
switch type
{
case 1:
instance_create_depth((battle_box.bbox_left + 60), -50, -100, obj_battle_enemy_attack_asgore_sinusoid)
instance_create_depth((battle_box.bbox_right - 60), -120, -100, obj_battle_enemy_attack_asgore_sinusoid)
break
case 2:
instance_create_depth((battle_box.bbox_left + 40), (battle_box.bbox_top - 60), -100, obj_battle_enemy_attack_asgore_sinusoid)
instance_create_depth(battle_box.x, (battle_box.bbox_top - 100), -100, obj_battle_enemy_attack_asgore_sinusoid)
instance_create_depth((battle_box.bbox_right - 40), (battle_box.bbox_top - 140), -100, obj_battle_enemy_attack_asgore_sinusoid)
break
case 3:
instance_create_depth((battle_box.bbox_right - 40), (battle_box.bbox_top - 60), -100, obj_battle_enemy_attack_asgore_sinusoid)
instance_create_depth(battle_box.x, (battle_box.bbox_top - 100), -100, obj_battle_enemy_attack_asgore_sinusoid)
instance_create_depth((battle_box.bbox_left + 40), (battle_box.bbox_top - 140), -100, obj_battle_enemy_attack_asgore_sinusoid)
break
}
attack_count--
if (attack_count > 0)
alarm[0] = 80
else
{
obj_battle_enemy_attack_asgore_checker.alarm[0] = 60
instance_destroy()
} |
26 |
else |
27 |
{ |
28 |
obj_battle_enemy_attack_asgore_checker.alarm[0] = 60 |
29 |
instance_destroy() |
30 |
} |