Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_weird_circle_Step_0

(view raw script w/o annotations or w/e)
1
if (hellzone)
2
{
3
    if (alarm[1] > 13)
4
        alarm[1]
 = 13;
gml_Object_obj_knight_weird_circle_Alarm_1.gml

r = 64; g = 64; b = 64; snd_play(snd_drake_dodge); with (
scr_fire_bullet(x, y, obj_knight_weird_circle_bullet, 90, 6, spr_knight_weird_shape))
{ destroyonhit = false; damage = 206; element = 5; grazepoints = 12;
scr_script_repeat(scr_afterimage_grow, 600, 4, 0.08, 0, -0.08);
gravity_direction = direction; gravity = 0.2; image_speed *= 0.5; image_yscale = 3; image_xscale = 0;
scr_lerpvar("image_yscale", 3, 2, 12);
scr_lerpvar("image_xscale", 0, 2, 12);
image_angle = direction; } for (a = 0; a < 5; a++) { with (
scr_fire_bullet(x, y, obj_regularbullet, 27.5 + (31.25 * a), 4, spr_diamondbullet_form))
{ grazepoints = 3; damage = 206; element = 5; image_angle = direction; } } for (a = 0; a < 4; a++) { if (a == 1 || a == 2) continue; with (
scr_fire_bullet(x, y, obj_regularbullet, 40 + (33.333333333333336 * a), 6, spr_diamondbullet_form))
{ grazepoints = 3; damage = 206; element = 5; image_angle = direction; } }
5
}
6
timer++;
7
if (alarm[1])
8
{
9
    r += (191 / rgb_rate);
10
    g += (191 / rgb_rate);
11
    b += (191 / rgb_rate);
12
    if (alarm[1] < 16 && (alarm[1] % 4) == 0)
13
        
scr_afterimage_grow_attached
scr_afterimage_grow_attached

function
scr_afterimage_grow_attached()
{ with (
scr_afterimage_grow())
{ target = argument[0]; image_blend = argument[1]; if (argument_count > 2) { if (argument[2] == true) depth = other.depth - 1; } } }
(id, image_blend, false);
14
}