Undertale script viewer

← back to main script listing

gml_Object_obj_mainchara_Draw_0

related scripts: Collision_10Collision_11Collision_12Collision_13Collision_1367Collision_822Create_0Draw_0 KeyPress_118KeyPress_120KeyPress_121KeyPress_122KeyPress_123KeyPress_33KeyPress_34KeyPress_35KeyPress_36KeyPress_45KeyPress_46KeyPress_48KeyPress_49KeyPress_50KeyPress_51KeyPress_52KeyPress_53KeyPress_54KeyPress_71KeyPress_73KeyPress_77KeyPress_79KeyPress_80KeyPress_85Keyboard_76Keyboard_83Other_10Other_12Step_0Step_2

(view raw script w/o annotations or w/e)
1
if (inwater == 0)
2
    draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, image_blend, image_alpha);
3
if (inwater == 1)
4
{
5
    draw_sprite_part_ext(sprite_index, image_index, 0, 0, sprite_width, sprite_height - 5, x, y + 5, 1, 1, c_white, image_alpha);
6
    if (obj_mainchara.image_index == 1 || obj_mainchara.image_index == 3)
7
    {
8
        snd_play(snd_splash);
9
        mp = 0;
10
    }
11
    draw_sprite(spr_waterripple, 0, x, y);
12
}
13
if (room == room_water_waterfall3)
14
    draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_black, image_alpha);