Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_big_frog_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var soul = obj_heart_battle_fighting_red
4
image_index = 1
5
direction = point_direction(x, y, soul.x, soul.y)
6
var dir_clamp = 15
7
if (image_xscale == 1)
8
    direction = clamp(direction, (90 + dir_clamp), (180 - dir_clamp))
9
else
10
    direction = clamp(direction, dir_clamp, (90 - dir_clamp))
11
speed = 8
12
gravity = 0.25