Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_candle_flamebullet_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if ((timer % 1) == 0)
3
{
4
    var grow = 
scr_afterimage_grow
scr_afterimage_grow

function
scr_afterimage_grow()
{ afterimage = instance_create(x, y, obj_afterimage_grow); 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.image_alpha = image_alpha; return afterimage; }
();
5
    grow.xrate = -0.2;
6
    grow.yrate = -0.2;
7
}
8
if (i_ex(obj_church_candle_lightable))
9
{
10
    var candle = instance_nearest(x, y, obj_church_candle_lightable);
11
    if (distance_to_object(candle) < 10)
12
        move_towards_point(candle.x, candle.y, speed);
13
}
14
if (x > (room_width + 80) || x < -80 || y > (room_height + 80) || y < -80)
15
    instance_destroy();