1 |
var box = obj_dialogue_box_battle_transformation_any |
2 |
var puff_width = sprite_get_width(spr_attack_steam_puff) |
3 |
var puff_height = sprite_get_height(spr_attack_steam_puff) |
4 |
var puff_x_1 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)) |
5 |
for (var puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)); puff_x_1 == puff_x_2; puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width))) |
6 |
{ |
7 |
} |
8 |
while ((puff_x_1_last == puff_x_1 || puff_x_1_last == puff_x_2) && (puff_x_2_last == puff_x_1 || puff_x_2_last == puff_x_2)) |
9 |
{ |
10 |
puff_x_1 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)) |
11 |
for (puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)); puff_x_1 == puff_x_2; puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width))) |
12 |
{ |
13 |
} |
14 |
} |
15 |
var smoke_1 = instance_create_depth(puff_x_1, (box.bbox_bottom - puff_height), -9999, obj_battle_enemy_attack_smoke_puff) |
16 |
var smoke_2 = instance_create_depth(puff_x_2, (box.bbox_bottom - puff_height), -9999, obj_battle_enemy_attack_smoke_puff) |
17 |
attack_count -= 1 |
18 |
puff_x_1_last = puff_x_1 |
19 |
puff_x_2_last = puff_x_2 |
20 |
if (attack_count <= 0 && (!alarm[1])) |
21 |
alarm[1] = 45 |
22 |
alarm[0] = 24alarm[0]var box = obj_dialogue_box_battle_transformation_any
var puff_width = sprite_get_width(spr_attack_steam_puff)
var puff_height = sprite_get_height(spr_attack_steam_puff)
var puff_x_1 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width))
for (var puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)); puff_x_1 == puff_x_2; puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)))
{
}
while ((puff_x_1_last == puff_x_1 || puff_x_1_last == puff_x_2) && (puff_x_2_last == puff_x_1 || puff_x_2_last == puff_x_2))
{
puff_x_1 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width))
for (puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)); puff_x_1 == puff_x_2; puff_x_2 = choose((box.bbox_left + puff_width), box.x, (box.bbox_right - puff_width)))
{
}
}
var smoke_1 = instance_create_depth(puff_x_1, (box.bbox_bottom - puff_height), -9999, obj_battle_enemy_attack_smoke_puff)
var smoke_2 = instance_create_depth(puff_x_2, (box.bbox_bottom - puff_height), -9999, obj_battle_enemy_attack_smoke_puff)
attack_count -= 1
puff_x_1_last = puff_x_1
puff_x_2_last = puff_x_2
if (attack_count <= 0 && (!alarm[1]))
alarm[1] = 45
alarm[0] = 24 |