Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_incense_turtle_shake_smoke_Step_0

(view raw script w/o annotations or w/e)
1
image_angle -= 8;
2
image_alpha -= 0.02;
3
if (image_alpha <= 0.8)
4
{
5
    var _ilerp = 
scr_remapvalue
scr_remapvalue

function
scr_remapvalue(arg0, arg1, arg2, arg3, arg4)
{ if (arg1 == arg0) return arg3; var __invLerp = (arg2 - arg0) / (arg1 - arg0); return lerp(arg3, arg4, __invLerp); } function remap(arg0, arg1, arg2, arg3, arg4) { var __invLerp =
scr_inverselerp(arg0, arg1, arg4);
return lerp(arg2, arg3, __invLerp); } function remap_clamped(arg0, arg1, arg2, arg3, arg4) { var __remapped_value = remap(arg0, arg1, arg2, arg3, arg4); return clamp(__remapped_value, min(arg2, arg3), max(arg2, arg3)); }
(0.8, 0, image_alpha, 0, 1);
6
    h_speed = lerp_ease_in(0, -8, _ilerp, 1);
7
}
8
if (image_alpha < 0)
9
    instance_destroy();
10
if (mode == 1)
11
{
12
    image_xscale += 0.05;
13
    image_yscale += 0.05;
14
    image_xscale = clamp(image_xscale, 0, 2);
15
    image_yscale = clamp(image_yscale, 0, 2);
16
}