From bf395b7d01c0678cf1aa1f16508e1f1dfc23aa70 Mon Sep 17 00:00:00 2001 From: the me Date: Thu, 18 Aug 2022 17:14:02 -0700 Subject: [PATCH] https://www.youtube.com/watch?v=KTNTPpb2fbo --- eastern flames/eastern flames.yyp | 1 + .../objects/ARTICULATOR/Draw_64.gml | 2 +- .../objects/ARTICULATOR/Draw_72.gml | 2 + eastern flames/objects/o_unit/Step_0.gml | 3 ++ .../scripts/c_deleteunit/c_deleteunit.gml | 5 ++ .../scripts/c_deleteunit/c_deleteunit.yy | 12 +++++ .../scripts/c_loadstageone/c_loadstageone.gml | 46 +++++++++++++++++-- eastern flames/scripts/x_units/x_units.gml | 38 +++++++++++++-- 8 files changed, 100 insertions(+), 9 deletions(-) create mode 100644 eastern flames/scripts/c_deleteunit/c_deleteunit.gml create mode 100644 eastern flames/scripts/c_deleteunit/c_deleteunit.yy diff --git a/eastern flames/eastern flames.yyp b/eastern flames/eastern flames.yyp index 07a5ef2..01422a1 100644 --- a/eastern flames/eastern flames.yyp +++ b/eastern flames/eastern flames.yyp @@ -90,6 +90,7 @@ {"id":{"name":"c_null","path":"scripts/c_null/c_null.yy",},"order":4,}, {"id":{"name":"array_contains_within","path":"scripts/array_contains_within/array_contains_within.yy",},"order":19,}, {"id":{"name":"st_moving","path":"scripts/st_moving/st_moving.yy",},"order":7,}, + {"id":{"name":"c_deleteunit","path":"scripts/c_deleteunit/c_deleteunit.yy",},"order":22,}, {"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},"order":0,}, ], "Options": [ diff --git a/eastern flames/objects/ARTICULATOR/Draw_64.gml b/eastern flames/objects/ARTICULATOR/Draw_64.gml index c6498b9..614c54e 100644 --- a/eastern flames/objects/ARTICULATOR/Draw_64.gml +++ b/eastern flames/objects/ARTICULATOR/Draw_64.gml @@ -1,6 +1,6 @@ if hoveredunit != noone { draw_set_color(c_black); - draw_rectangle(global.gw, global.gh, global.gw-100, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false); + draw_rectangle(global.gw, global.gh, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false); draw_set_color(c_white); var i; draw_set_halign(fa_right); diff --git a/eastern flames/objects/ARTICULATOR/Draw_72.gml b/eastern flames/objects/ARTICULATOR/Draw_72.gml index 2674f11..3c34e88 100644 --- a/eastern flames/objects/ARTICULATOR/Draw_72.gml +++ b/eastern flames/objects/ARTICULATOR/Draw_72.gml @@ -3,6 +3,8 @@ var cam = camera_get_active(); global.projMat = camera_get_proj_mat(cam); global.viewMat = camera_get_view_mat(cam); setCam(); +draw_set_color(c_black); +draw_rectangle(-9999, -9999, 9999, 9999, false); var i, j, k; for (i=0; i