Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_perspective_y_thing_Draw_0

(view raw script w/o annotations or w/e)
1
_angle += 2;
2
_surface_yscale = (obj_rotating_tower_controller.yoffset + (_surface_y - 40)) / 350;
3
y = ystart + obj_rotating_tower_controller.yoffset;
4
if (!surface_exists(_surface))
5
    _surface = surface_create(room_width, room_height);
6
surface_set_target(_surface);
7
draw_clear_alpha(c_white, 0);
8
var aa = 0;
9
repeat (8)
10
{
11
    draw_sprite_ext(sprite_index, image_index, 305, 103, 1, -0.55, _angle + (aa * 45), image_blend, 0.75);
12
    aa++;
13
}
14
draw_set_blend_mode(bm_subtract);
15
draw_sprite_ext(spr_yperspectivething_mask, image_index, 245, 105, 1, -0.55, 0, image_blend, 1);
16
draw_set_blend_mode(bm_normal);
17
surface_reset_target();
18
draw_surface_ext(_surface, _surface_x, _surface_y + y, _surface_xscale, _surface_yscale, 0, c_white, 1);