1 |
if live_call() |
2 |
return global.live_result; |
3 |
switch scene |
4 |
{ |
5 |
case 0: |
6 |
with (obj_tellyvis_body_a) |
7 |
{ |
8 |
if (image_index >= (image_number - 1)) |
9 |
{ |
10 |
image_speed = 0 |
11 |
sprite_index = spr_tellyvis_remote_2 |
12 |
image_index = image_number - 1 |
13 |
other.scene++ |
14 |
other.timer = 15 |
15 |
} |
16 |
} |
17 |
break |
18 |
case 1: |
19 |
if (timer > 0) |
20 |
{ |
21 |
timer-- |
22 |
return; |
23 |
} |
24 |
obj_tellyvis_body_a.image_index = 0 |
25 |
scene++ |
26 |
break |
27 |
case 2: |
28 |
other.attack_counter_current = -1 |
29 |
if (attack_counter_max <= 0) |
30 |
{ |
31 |
attack_remote_destroy = true |
32 |
instance_destroy() |
33 |
return; |
34 |
} |
35 |
with (obj_tellyvis_body_a) |
36 |
{ |
37 |
if (image_speed != 1) |
38 |
{ |
39 |
sprite_index = spr_tellyvis_remote_2 |
40 |
image_index = 0 |
41 |
image_speed = 1 |
42 |
} |
43 |
if (image_index >= (image_number - 1)) |
44 |
{ |
45 |
show_debug_message("Crispy Slash") |
46 |
if (!instance_exists(obj_quote_battle_tellyvis_a_mid_attack)) |
47 |
instance_create_depth(0, 0, -9999, obj_quote_battle_tellyvis_a_mid_attack) |
48 |
else |
49 |
{ |
50 |
with (obj_quote_battle_tellyvis_a_mid_attack) |
51 |
{ |
52 |
message_number += 1 |
53 |
event_user(0) |
54 |
} |
55 |
} |
56 |
sprite_index = spr_tellyvis_remote_1 |
57 |
image_index = image_number - 1 |
58 |
image_speed = 0 |
59 |
other.scene++ |
60 |
global.timer_attacks_counter = 0 |
61 |
other.random_attack_current_last = other.random_attack_current |
62 |
other.random_attack_current = "nothing" |
63 |
} |
64 |
} |
65 |
break |
66 |
case 3: |
67 |
event_user(0) |
68 |
break |
69 |
} |