Deltarune script viewer

← back to main script listing

gml_Object_obj_beatbullet_Destroy_0

(view raw script w/o annotations or w/e)
1
with (instance_create_depth(x, y, 0, obj_beatflash))
2
{
3
    image_xscale = other.sprite_width;
4
    image_yscale = (1 / sprite_height) * 300;
5
}
6
if (scr_outside_camera
scr_outside_camera

function scr_outside_camera(arg0) { _offcamera = 0; rightx = x + sprite_width; leftx = x; bottomy = y + sprite_height; topy = y; if (x > (__view_get(e__VW.XView, 0) + __view_get(e__VW.WView, 0) + arg0)) _offcamera = 1; if (rightx < (__view_get(e__VW.XView, 0) - arg0)) _offcamera = 1; if (y > (__view_get(e__VW.YView, 0) + __view_get(e__VW.HView, 0) + arg0)) _offcamera = 1; if (bottomy < (__view_get(e__VW.YView, 0) - arg0)) _offcamera = 1; return _offcamera; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
(0) == 0)
7
{
8
    with (obj_beatbulletroom)
9
        playsound = 1;
10
}