Deltarune script viewer

← back to main script listing

gml_Object_obj_omawaroid_vaccine_Draw_0

(view raw script w/o annotations or w/e)
1
if (image_index == 2 && image_speed > 0)
2
    image_speed = 0;
3
if ((hspeed > 0 && x > (obj_growtangle.x + (obj_growtangle.sprite_width / 2) + 10)) || (hspeed < 0 && x < (obj_growtangle.x - (obj_growtangle.sprite_width / 2) - 10)))
4
{
5
    image_alpha -= 0.1;
6
    active = false;
7
}
8
else if (image_alpha < 1)
9
{
10
    image_alpha += 0.1;
11
}
12
draw_self();