From 7f3de8ee17413218f3921efab2cd33452dc2de7a Mon Sep 17 00:00:00 2001 From: MakhamDev Date: Wed, 11 Oct 2023 10:32:38 +0700 Subject: [PATCH] Text path --- scripts/node_text/node_text.gml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/node_text/node_text.gml b/scripts/node_text/node_text.gml index 26e6a72fb..a94310fee 100644 --- a/scripts/node_text/node_text.gml +++ b/scripts/node_text/node_text.gml @@ -187,15 +187,8 @@ function Node_Text(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) cons string_foreach(_str_line, function(_chr, _ind) { var _pos = __temp_pt.getPointDistance(__temp_tx); - var _nor = 0; - - if(__temp_tx < 0.9) { - var _p2 = __temp_pt.getPointDistance(__temp_tx + 0.1); - _nor = point_direction(_pos.x, _pos.y, _p2.x, _p2.y); - } else { - var _p2 = __temp_pt.getPointDistance(__temp_tx - 0.1); - _nor = point_direction(_p2.x, _p2.y, _pos.x, _pos.y); - } + var _p2 = __temp_pt.getPointDistance(__temp_tx + 0.1); + var _nor = point_direction(_pos.x, _pos.y, _p2.x, _p2.y); var _line_ang = _nor - 90; var _dx = lengthdir_x(__temp_ty, _line_ang);