Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_cactony_needle_green_white_Other_11

(view raw script w/o annotations or w/e)
1
var spacing_h = obj_battle_enemy_attack_cactony_needle_green_generator.spacing_h
2
if (move_direction == 1 && bbox_left > obj_dialogue_box_battle_transformation_any.bbox_right)
3
{
4
    x -= spacing_h
5
    while place_meeting(x, y, obj_battle_enemy_attack_cactony_needle_green_white)
6
        x -= spacing_h
7
}
8
else if (move_direction == -1 && bbox_right < obj_dialogue_box_battle_transformation_any.bbox_left)
9
{
10
    x += spacing_h
11
    while place_meeting(x, y, obj_battle_enemy_attack_cactony_needle_green_white)
12
        x += spacing_h
13
}