Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_vine_for_grab_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (abs(320 - x) <= 10)
4
{
5
    instance_destroy()
6
    if (!instance_exists(obj_flowey_battle_gray_vine_grab))
7
    {
8
        obj_heart_battle_fighting_parent.y = 700
9
        obj_heart_battle_fighting_parent.moveable = false
10
        obj_heart_battle_fighting_parent.can_shoot = false
11
        instance_create_depth(320, y, -100, obj_flowey_battle_gray_vine_grab)
12
        audio_play_sound(snd_undertale_impact, 1, 0)
13
        scr_screenshake_battle
scr_screenshake_battle

function scr_screenshake_battle() //gml_Script_scr_screenshake_battle { instance_destroy(obj_screenshake_battle) var screenshake = instance_create(0, 0, obj_screenshake_battle) battle_screenshake_duration = argument[0] battle_screenshake_intensity = argument[1] battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration }
(5, 2)
14
    }
15
}
16
y = obj_heart_battle_fighting_parent.y
17
if (place_meeting(x, y, obj_heart_battle_fighting_parent) && (!soul_grab_noloop))
18
{
19
    audio_play_sound(snd_switch, 1, 0)
20
    obj_heart_battle_fighting_parent.moveable = false
21
    soul_grab_noloop = true
22
}
23
if (soul_grab_noloop == true)
24
    obj_heart_battle_fighting_parent.x = x + 8