1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (layer_instance_get_instance(ds_map_find_value(event_data, "element_id")) == id) |
4 |
{ |
5 |
if (ds_map_find_value(event_data, "event_type") == "sprite event") |
6 |
{ |
7 |
switch ds_map_find_value(event_data, "message") |
8 |
{ |
9 |
case "talon_pause": |
10 |
image_speed = 0 |
11 |
attack_event_shake = true |
12 |
alarm[0] = attack_delayalarm[0]if live_call()
return global.live_result;
image_speed = attack_speed
x_last = obj_heart_battle_fighting_parent.x - x_diff
image_blend = c_red
audio_play_sound(snd_bullet_warning, 1, 0)
alarm[1] = 3 |
13 |
break |
14 |
case "talon_spawn_scratch": |
15 |
can_move = false |
16 |
audio_play_sound(snd_attack_swipe, 1, 0) |
17 |
var scratch = instance_create_depth(x, y, (depth + 1), obj_martlet_attack_talon_scratch) |
18 |
scratch.image_angle = image_angle |
19 |
scratch.image_speed = image_speed |
20 |
scratch.image_xscale = image_xscale |
21 |
scratch.image_yscale = image_yscale |
22 |
var collider = instance_create_depth(x, y, depth, obj_martlet_attack_talon_scratch_collide) |
23 |
collider.image_angle = image_angle |
24 |
collider.image_speed = image_speed |
25 |
collider.image_xscale = image_xscale |
26 |
collider.image_yscale = image_yscale |
27 |
break |
28 |
} |
29 |
|
30 |
} |
31 |
} |