Deltarune script viewer

← back to main script listing

gml_Object_obj_hangplug_spark_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_color(c_white)
2
amount = y / (basey + 190)
3
draw_set_alpha(amount / 4)
4
draw_ellipse((x - sprite_width / 2 * amount), (basey + (fallAmount - 20) - 6 * amount), (x + sprite_width / 2 * amount), (basey + (fallAmount - 40) + 6 * amount), 0)
5
draw_set_alpha(image_alpha)
6
scaler = lerp(scaler, 1, 0.25)
7
sparkalpha = 0.4
8
repeat (5)
9
    draw_sprite_ext(spr_ch2_gimmick_hangplug_spark_clean, choose(0, 1, 2, 3), x, (y - 40), (2 * scaler), (2 * scaler), (33 * irandom(8)), c_white, sparkalpha)
10
afterimage = instance_create_depth(x, (y - 40), (depth + 1), obj_afterimage_grow)
11
afterimage.sprite_index = spr_ch2_gimmick_hangplug_spark_clean
12
scr_darksize
scr_darksize

function scr_darksize(argument0) //gml_Script_scr_darksize { inst = argument0 inst.image_xscale = 2 inst.image_yscale = 2 }
(afterimage)
13
afterimage.xrate = -0.2
14
afterimage.yrate = -0.2
15
afterimage.image_angle = 33 * irandom(8)
16
afterimage.image_alpha = 0.8
17
draw_set_alpha(1)