1 | var distance_right = obj_battle_enemy_attack_insomnitot_fence.bbox_left - bbox_right |
2 | var distance_left = obj_battle_enemy_attack_insomnitot_fence.bbox_right - bbox_left |
3 | if ((attack_direction == 1 && distance_right <= distance_limit && distance_right > 0) || (attack_direction == -1 && distance_left >= (-distance_limit) && distance_left < 0)) |
4 | { |
5 | sprite_index = jump_sprite |
6 | image_speed = 0 |
7 | image_index = 0 |
8 | state = "jump" |
9 | } |