Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_bullet_shway

(view raw script w/o annotations or w/e)
1
function 
scr_bullet_shway
scr_bullet_shway

function
scr_bullet_shway()
{ if (image_index == 0) { shway_counter++; x += (sin(shway_counter * 0.1) * 3); with (
scr_afterimagefast())
{ fadeSpeed *= 3; image_blend = c_gray; } } }
()
2
{
3
    if (image_index == 0)
4
    {
5
        shway_counter++;
6
        x += (sin(shway_counter * 0.1) * 3);
7
        with (
scr_afterimagefast
scr_afterimagefast

function
scr_afterimagefast()
{ afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; afterimage.fadeSpeed = 0.08; return afterimage; }
())
8
        {
9
            fadeSpeed *= 3;
10
            image_blend = c_gray;
11
        }
12
    }
13
}