Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_afterimage_shell_Draw_0

(view raw script w/o annotations or w/e)
1
var scale = image_xscale;
2
if (sprite_index == spr_bounce_shell_idle)
3
    draw_sprite_ext(spr_bounce_shell_idle_color, image_index, x + lengthdir_x(shakelen, shakedir), y + lengthdir_y(shakelen, shakedir), scale, scale, image_angle, shellcolor, image_alpha);
4
if (sprite_index == spr_bounce_shell_hit_center)
5
    draw_sprite_ext(spr_bounce_shell_hit_center_color, image_index, x + lengthdir_x(shakelen, shakedir), y + lengthdir_y(shakelen, shakedir), scale, scale, image_angle, shellcolor, image_alpha);
6
if (sprite_index == spr_bounce_shell_squish)
7
    draw_sprite_ext(spr_bounce_shell_squish_color, image_index, x + lengthdir_x(shakelen, shakedir), y + lengthdir_y(shakelen, shakedir), scale, scale, image_angle, shellcolor, image_alpha);
8
if (sprite_index == spr_bounce_shell_squish2)
9
    draw_sprite_ext(spr_bounce_shell_squish2_color, image_index, x + lengthdir_x(shakelen, shakedir), y + lengthdir_y(shakelen, shakedir), scale, scale, image_angle, shellcolor, image_alpha);
10
draw_sprite_ext(sprite_index, image_index, x + lengthdir_x(shakelen, shakedir), y + lengthdir_y(shakelen, shakedir), scale, scale, image_angle, image_blend, image_alpha);