Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_drawpart_rotate

(view raw script w/o annotations or w/e)
1
function scr_drawpart_rotate
scr_drawpart_rotate

function scr_drawpart_rotate(arg0, arg1, arg2, arg3, arg4, arg5) { var __theta = point_direction(sprite_xoffset, sprite_yoffset, arg0, arg1); var __radius = point_distance(sprite_xoffset, sprite_yoffset, arg0, arg1); __theta += image_angle; var __xx = x + lengthdir_x(__radius, __theta); var __yy = y + lengthdir_y(__radius, __theta); draw_sprite_general(sprite_index, image_index, arg0, arg1, arg2, arg3, __xx + arg4, __yy + arg5, image_xscale, image_yscale, image_angle, image_blend, image_blend, image_blend, image_blend, image_alpha); }
(arg0, arg1, arg2, arg3, arg4, arg5)
2
{
3
    var __theta = point_direction(sprite_xoffset, sprite_yoffset, arg0, arg1);
4
    var __radius = point_distance(sprite_xoffset, sprite_yoffset, arg0, arg1);
5
    __theta += image_angle;
6
    var __xx = x + lengthdir_x(__radius, __theta);
7
    var __yy = y + lengthdir_y(__radius, __theta);
8
    draw_sprite_general(sprite_index, image_index, arg0, arg1, arg2, arg3, __xx + arg4, __yy + arg5, image_xscale, image_yscale, image_angle, image_blend, image_blend, image_blend, image_blend, image_alpha);
9
}