Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_crayon_indicator_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
sprite_index = asset_get_index("spr_size_crayon_" + string(obj_crayon_minigame.crayon_selected))
4
image_alpha = obj_crayon_minigame.draw_alpha
5
switch obj_crayon_minigame.brush_size_current
6
{
7
    case obj_crayon_minigame.brush_size_large:
8
        image_angle = lerp(image_angle, 180, 0.25)
9
        break
10
    default:
11
        image_angle = lerp(image_angle, 0, 0.25)
12
        break
13
}