Undertale script viewer

← back to main script listing

gml_Object_obj_bulletblocker_Collision_740

(view raw script w/o annotations or w/e)
1
if (visible == true)
2
{
3
    with (other.id)
4
        instance_destroy();
5
}
6
if (visible == true)
7
{
8
    if (instance_exists(obj_ratingsmaster))
9
        global.ratings += 20;
10
    snd_play(snd_mtt_burst);
11
    bp = instance_create(x, y, obj_brokenpiece);
12
    if (instance_exists(bp))
13
        bp.sprite_index = sprite_index;
14
    visible = false;
15
}