Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_dash_ramp_Create_0

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

function
scr_depth_ypos(arg0)
{ depth = 1200000 - ((arg0 * 10) + (sprite_height * 10)); }
(y + 10);
2
multiples = 32;
3
y_plat = ystart;
4
y_ow = ystart;
5
y_back = ystart;
6
y_depth = 32;
7
y_depth_plat = 4;
8
y = y_back + y_depth;
9
ignore_yorigin = 0;
10
var _floor = instance_place(x, y, obj_plat_floortex);
11
if (instance_exists(_floor))
12
    y_plat = _floor.y;
13
with (instance_create(x - (image_xscale * 20), y_plat, obj_plat_slope))
14
{
15
    image_xscale = other.sprite_width / sprite_width;
16
    image_yscale = other.sprite_height / sprite_height;
17
    visible = 0;
18
}