Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_jackolantern_Collision_obj_ghosthouse_jackolantern

(view raw script w/o annotations or w/e)
1
if (polite == 1 && point_distance(x, y, other.x, other.y) < 35)
2
{
3
    explosion = instance_create(x, y, obj_animation);
4
    explosion.image_xscale = 2;
5
    explosion.image_yscale = 2;
6
    snd_play(snd_badexplosion);
7
    explosion.sprite_index = spr_realisticexplosion;
8
    instance_destroy();
9
    other.polite = -3.75;
10
}