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
    speed -= speed_dec
9
else
10
{
11
    speed = 0
12
    x = round(x)
13
    y = round(y)
14
}