Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_nobyact_shutta_Draw_0

(view raw script w/o annotations or w/e)
1
image_alpha += 0.2;
2
var _color = 16776960;
3
if (tutorial && tutorialtimer < 70)
4
{
5
    tutorialtimer++;
6
    if (obj_shutta_photo_controller.fastphoto == true)
7
        tutorialtimer += 0.5;
8
    var _tutorialtimer = tutorialtimer;
9
    if (_tutorialtimer >= 50)
10
    {
11
        _color = merge_color(c_red, c_aqua, (_tutorialtimer - 50) / 20);
12
        if (sprite_index == spr_shutta_jump || mysprite == 4375)
13
            _color = merge_color(c_lime, c_aqua, (_tutorialtimer - 50) / 20);
14
    }
15
    else
16
    {
17
        _color = 255;
18
        if (sprite_index == spr_shutta_jump || mysprite == 4375)
19
            _color = 65280;
20
    }
21
}
22
var _image_xscale = image_xscale;
23
if (_image_xscale >= 0 && _image_xscale < 0.3)
24
    _image_xscale = 0.3;
25
if (_image_xscale < 0 && _image_xscale > -0.3)
26
    _image_xscale = -0.3;
27
if (facing == 0)
28
{
29
    draw_sprite_ext_flash(sprite_index, image_index, x - 4, y - 4, _image_xscale, image_yscale, image_angle, _color, image_alpha);
30
    draw_sprite_ext(sprite_index, image_index, x, y, _image_xscale, image_yscale, image_angle, c_black, image_alpha);
31
}
32
if (facing == 1)
33
    draw_sprite_ext(sprite_index, image_index, x, y, _image_xscale, image_yscale, image_angle, image_blend, image_alpha);