1 |
var counter_timer_max = 0 |
2 |
var player_soul = obj_heart_battle_fighting_parent |
3 |
switch counter_current |
4 |
{ |
5 |
case 0: |
6 |
instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
7 |
if (global.battle_phase == 2) |
8 |
{ |
9 |
instance_create(player_soul.x, (player_soul.y - 58), obj_battle_enemy_attack_ceroba_diamond) |
10 |
instance_create(player_soul.x, (player_soul.y + 58), obj_battle_enemy_attack_ceroba_diamond) |
11 |
} |
12 |
counter_current++ |
13 |
break |
14 |
case 1: |
15 |
counter_timer_max = 25 |
16 |
break |
17 |
case 2: |
18 |
instance_create(player_soul.x, 320, obj_battle_enemy_attack_ceroba_beam_vertical) |
19 |
counter_current++ |
20 |
break |
21 |
case 3: |
22 |
counter_timer_max = 25 |
23 |
break |
24 |
case 4: |
25 |
instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
26 |
if (global.battle_phase == 2) |
27 |
{ |
28 |
instance_create((player_soul.x - 58), player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
29 |
instance_create((player_soul.x + 58), player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
30 |
} |
31 |
counter_current++ |
32 |
break |
33 |
case 5: |
34 |
counter_timer_max = 25 |
35 |
break |
36 |
case 6: |
37 |
instance_create(320, player_soul.y, obj_battle_enemy_attack_ceroba_beam_horizontal) |
38 |
counter_current++ |
39 |
break |
40 |
case 7: |
41 |
counter_timer_max = 25 |
42 |
break |
43 |
case 8: |
44 |
instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
45 |
if (global.battle_phase == 2) |
46 |
{ |
47 |
instance_create(player_soul.x, (player_soul.y - 58), obj_battle_enemy_attack_ceroba_diamond) |
48 |
instance_create(player_soul.x, (player_soul.y + 58), obj_battle_enemy_attack_ceroba_diamond) |
49 |
instance_create((player_soul.x - 58), player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
50 |
instance_create((player_soul.x + 58), player_soul.y, obj_battle_enemy_attack_ceroba_diamond) |
51 |
} |
52 |
counter_current++ |
53 |
break |
54 |
case 9: |
55 |
counter_timer_max = 25 |
56 |
break |
57 |
case 10: |
58 |
instance_create(player_soul.x, 320, obj_battle_enemy_attack_ceroba_beam_vertical) |
59 |
instance_create(320, player_soul.y, obj_battle_enemy_attack_ceroba_beam_horizontal) |
60 |
counter_current++ |
61 |
break |
62 |
case 11: |
63 |
counter_timer_max = 40 |
64 |
break |
65 |
case 12: |
66 |
if (counter_timer > 0) |
67 |
{ |
68 |
counter_timer-- |
69 |
return; |
70 |
} |
71 |
instance_destroy() |
72 |
break |
73 |
} |
74 |
|
75 |
if (counter_timer_max == 0) |
76 |
return; |
77 |
if (counter_timer < counter_timer_max) |
78 |
counter_timer++ |
79 |
else |
80 |
{ |
81 |
counter_timer = 0 |
82 |
counter_current += 1 |
83 |
} |