Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_ease_towards_direction

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

function
scr_ease_towards_direction()
{ return median(-argument2, argument2, (1 - argument3) * angle_difference(argument1, argument0)); } function scr_ease_towards_direction_angle() { image_angle += median(-argument1, argument1, (1 - argument2) * angle_difference(argument0, image_angle)); exit; } function scr_ease_towards_direction_manual() { direction += median(-argument1, argument1, (1 - argument2) * angle_difference(argument0, direction)); exit; }
()
2
{
3
    return median(-argument2, argument2, (1 - argument3) * angle_difference(argument1, argument0));
4
}
5
6
function scr_ease_towards_direction_angle()
7
{
8
    image_angle += median(-argument1, argument1, (1 - argument2) * angle_difference(argument0, image_angle));
9
    exit;
10
}
11
12
function scr_ease_towards_direction_manual()
13
{
14
    direction += median(-argument1, argument1, (1 - argument2) * angle_difference(argument0, direction));
15
    exit;
16
}