1 | if live_call() |
2 | return global.live_result; |
3 | if (layer_instance_get_instance(ds_map_find_value(event_data, "element_id")) == id && ds_map_find_value(event_data, "event_type") == "sprite event") |
4 | { |
5 | switch ds_map_find_value(event_data, "message") |
6 | { |
7 | case "frog_jump": |
8 | if (!audio_is_playing(snd_playerjump)) |
9 | { |
10 | obj_battle_enemy_attack_macro_tongue_attack_creator.attack_delay -= 1 |
11 | audio_play_sound(snd_playerjump, 1, 0) |
12 | } |
13 | hspeed = jump_speed * image_xscale |
14 | break |
15 | } |
16 | |
17 | } |