Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_mooch_coin_bag_coin_Step_0

(view raw script w/o annotations or w/e)
1
if (image_alpha < 1)
2
{
3
    image_alpha = lerp(image_alpha, 1, 0.1);
4
    if (image_alpha >= 0.99)
5
        image_alpha = 1;
6
}
7
if (speed > 0)
8
{
9
    speed -= speed_dec;
10
}
11
else
12
{
13
    speed = 0;
14
    x = round(x);
15
    y = round(y);
16
}