Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSA01G_Step_2

(view raw script w/o annotations or w/e)
1
if (cancelcon == 1)
2
{
3
    if (canceltimer == 0)
4
    {
5
        canceldist = point_distance(tvsign.x, tvsign.y, cancelled.x, cancelled.y);
6
        cancelang = point_direction(tvsign.x, tvsign.y, cancelled.x, cancelled.y);
7
        canceltimer = 5;
8
    }
9
    with (cancelled)
10
        
scr_orbitaroundpoint_dx
scr_orbitaroundpoint_dx

function
scr_orbitaroundpoint_dx(arg0, arg1, arg2, arg3)
{ x = arg0 + lengthdir_x(arg2, arg3); y = arg1 + lengthdir_y(arg2, arg3); }
(other.tvsign.x, other.tvsign.y, other.canceldist, other.cancelang + other.tvsign.image_angle);
11
    cancelled.image_angle = tvsign.image_angle + 2;
12
    canceltimer--;
13
    if (canceltimer == 0)
14
        cancelcon = 0;
15
}