Undertale script viewer

← back to main script listing

gml_Object_obj_discoball_pl_Collision_740

(view raw script w/o annotations or w/e)
1
with (other.id)
2
    instance_destroy();
3
if (type == 0)
4
    type = 1;
5
else
6
    type = 0;
7
swaptimer = 3;
8
sprite_index = spr_discoball_invert_pl;
9
if (soundtimer < 0)
10
{
11
    snd_play(snd_noise);
12
    soundtimer = 2;
13
}
14
if (instance_exists(obj_ratingsmaster))
15
    global.ratings += 5;