Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_initiate_battle_quick_2_Create_0

(view raw script w/o annotations or w/e)
1
scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
2
obj_pl.image_alpha = 0
3
if (global.party_member != noone && instance_exists(global.party_member))
4
    global.party_member.image_alpha = 0
5
depth = (-room_height) - 10000
6
point_x1 = x
7
point_y1 = y
8
point_x2 = (__view_get((0 << 0), 0)) + 160
9
point_y2 = (__view_get((1 << 0), 0)) + 160
10
script_execute(gml_Script_scr_determine_heart_initiate_battle_position_yellow)
11
angle = point_direction(point_x1, point_y1, point_x2, point_y2)
12
power_x = power(abs(point_x1 - point_x2), 2)
13
power_y = power(abs(point_y1 - point_y2), 2)
14
move_factor = 20
15
move_speed = (sqrt(power_x + power_y)) / move_factor
16
no_loop = false
17
audio_play_sound(snd_soul_battle_start, 20, false)
18
sprite_index = spr_heart_yellow_overworld