Deltarune script viewer

← back to main script listing

gml_Object_obj_spamtonpainting_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
image_index = 0;
3
randomvar = irandom(10);
4
if (randomvar == 7)
5
    image_index = choose(1, 2, 3);
6
randomvar = irandom(70);
7
if (randomvar == 69)
8
    image_index = 4;
9
scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();