Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_rotatearoundpoint

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

function
scr_rotatearoundpoint(arg0, arg1, arg2)
{
scr_orbitaroundpoint(arg0, arg1, arg2);
direction += arg2; }
(arg0, arg1, arg2)
2
{
3
    
scr_orbitaroundpoint
scr_orbitaroundpoint

function
scr_orbitaroundpoint(arg0, arg1, arg2)
{ var __theta = point_direction(arg0, arg1, x, y); var __radius = point_distance(arg0, arg1, x, y); __theta += arg2; x = arg0 + lengthdir_x(__radius, __theta); y = arg1 + lengthdir_y(__radius, __theta); }
(arg0, arg1, arg2);
4
    direction += arg2;
5
}