Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_initiate_battle_2_Create_0

(view raw script w/o annotations or w/e)
1
depth = (-room_height) - 10000
2
point_x1 = x
3
point_y1 = y
4
point_x2 = (__view_get((0 << 0), 0)) + 24
5
point_y2 = (__view_get((1 << 0), 0)) + 227
6
script_execute(gml_Script_scr_determine_heart_initiate_battle_position_yellow)
7
angle = point_direction(point_x1, point_y1, point_x2, point_y2)
8
power_x = power(abs(point_x1 - point_x2), 2)
9
power_y = power(abs(point_y1 - point_y2), 2)
10
move_factor = 15
11
move_speed = (sqrt(power_x + power_y)) / move_factor
12
no_loop = false
13
audio_play_sound(snd_soul_battle_start, 20, false)
14
sprite_index = spr_heart_yellow_overworld