Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_actor_orbiter_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
actor = [];
3
length = [];
4
angle_offset = [];
5
height_offset = [];
6
count = 0;
7
autoDepth = true;
8
groupDepth = false;
9
active = false;
10
reinit = false;
11
rotation = 0;
12
yscale = 1;
13
14
function add_actor(arg0, arg1 = 0, arg2 = 0, arg3 = 0)
15
{
16
    actor[count] = arg0;
17
    length[count] = arg1;
18
    angle_offset[count] = arg2;
19
    height_offset[count] = arg3;
20
    count++;
21
    var _vec2 = new Vector2(0, 0);
22
    _vec2.x = x + lengthdir_x(arg1, arg2 + direction);
23
    _vec2.y = (y + (lengthdir_y(arg1, arg2 + direction) * yscale)) - arg3;
24
    exit;
25
}