Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_attack_block_piece_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_set_alpha(image_alpha)
4
var wsprite = sprite_get_width(sprite_index)
5
var hsprite = sprite_get_height(sprite_index)
6
draw_sprite_part_ext(sprite_index, 0, 0, 0, (wsprite * 0.5), (hsprite * 0.5), (x + wsprite * 0.5 + (lengthdir_x(dist, 135))), (y + hsprite * 0.5 + (lengthdir_y(dist, 135))), 2, 2, image_blend, image_alpha)
7
draw_sprite_part_ext(sprite_index, 0, (wsprite * 0.5), 0, wsprite, (hsprite * 0.5), (x + wsprite * 0.5 + (lengthdir_x(dist, 45))), (y + hsprite * 0.5 + (lengthdir_y(dist, 45))), 2, 2, image_blend, image_alpha)
8
draw_sprite_part_ext(sprite_index, 0, 0, (hsprite * 0.5), (wsprite * 0.5), hsprite, (x + wsprite * 0.5 + (lengthdir_x(dist, 225))), (y + hsprite * 0.5 + (lengthdir_y(dist, 225))), 2, 2, image_blend, image_alpha)
9
draw_sprite_part_ext(sprite_index, 0, (wsprite * 0.5), (hsprite * 0.5), wsprite, hsprite, (x + wsprite * 0.5 + (lengthdir_x(dist, 315))), (y + hsprite * 0.5 + (lengthdir_y(dist, 315))), 2, 2, image_blend, image_alpha)
10
draw_set_alpha(1)