1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
if (irandom(frog_green_chance) == 1 && frog_green_noloop == false) |
5 |
{ |
6 |
is_green = true |
7 |
frog_green_noloop = true |
8 |
var meteor = instance_create_depth((battle_box.bbox_right + 10), irandom_range((battle_box.bbox_top + 20), (battle_box.bbox_bottom - 20)), -100, obj_battle_enemy_attack_space_green_frog) |
9 |
} |
10 |
else |
11 |
{ |
12 |
meteor = instance_create_depth((battle_box.bbox_right + 10), irandom_range((battle_box.bbox_top - 20), (battle_box.bbox_bottom + 20)), -100, obj_battle_enemy_attack_space_rock) |
13 |
if (frog_green_chance > 1) |
14 |
frog_green_chance-- |
15 |
} |
16 |
if (meteor.y > battle_box.y) |
17 |
meteor.direction = irandom_range(135, 180) |
18 |
else |
19 |
meteor.direction = irandom_range(180, 225) |
20 |
meteor.speed = 2 |
21 |
meteor_count-- |
22 |
if (meteor_count <= 0) |
23 |
instance_destroy() |
24 |
alarm[0] = meteor_delayalarm[0]if live_call()
return global.live_result;
var battle_box = obj_dialogue_box_battle_transformation_any
if (irandom(frog_green_chance) == 1 && frog_green_noloop == false)
{
is_green = true
frog_green_noloop = true
var meteor = instance_create_depth((battle_box.bbox_right + 10), irandom_range((battle_box.bbox_top + 20), (battle_box.bbox_bottom - 20)), -100, obj_battle_enemy_attack_space_green_frog)
}
else
{
meteor = instance_create_depth((battle_box.bbox_right + 10), irandom_range((battle_box.bbox_top - 20), (battle_box.bbox_bottom + 20)), -100, obj_battle_enemy_attack_space_rock)
if (frog_green_chance > 1)
frog_green_chance--
}
if (meteor.y > battle_box.y)
meteor.direction = irandom_range(135, 180)
else
meteor.direction = irandom_range(180, 225)
meteor.speed = 2
meteor_count--
if (meteor_count <= 0)
instance_destroy()
alarm[0] = meteor_delay |