Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_window_silhouette_maker_Create_0

(view raw script w/o annotations or w/e)
1
if (silhouette_obj == 0)
2
    silhouette_obj = 505;
3
if (stretch == 0)
4
    stretch = 1;
5
with (obj_mainchara)
6
{
7
    var _shadow = instance_create(x, y, other.silhouette_obj);
8
    _shadow.source = self;
9
    _shadow = instance_create(x, y, obj_cast_shadow);
10
    _shadow.source = self;
11
    _shadow.stretch = other.stretch;
12
}
13
with (obj_caterpillarchara)
14
{
15
    var _shadow = instance_create(x, y, other.silhouette_obj);
16
    _shadow.source = self;
17
    _shadow = instance_create(x, y, obj_cast_shadow);
18
    _shadow.source = self;
19
    _shadow.stretch = other.stretch;
20
}
21
with (obj_npc_room)
22
{
23
    var _shadow = instance_create(x, y, other.silhouette_obj);
24
    _shadow.source = self;
25
    _shadow = instance_create(x, y, obj_cast_shadow);
26
    _shadow.source = self;
27
    _shadow.stretch = other.stretch;
28
}
29
with (obj_npc_room_animated)
30
{
31
    var _shadow = instance_create(x, y, other.silhouette_obj);
32
    _shadow.source = self;
33
    _shadow = instance_create(x, y, obj_cast_shadow);
34
    _shadow.source = self;
35
    _shadow.stretch = other.stretch;
36
}