Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_drawpart_rotate_ext

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

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