show_text(msg as text)
TEXT(msg, 1, 3, 40, 0, "CHAT",32)
layer = 11
icon = 'HUD - Font.dmi'
icon_state = "[letter]"
TEXT = new
TEXT(string, loc_x, loc_y, pix_x, pix_y, LABEL = "none")
slength = length(string)
txttrack = 1
index = 1
var/letter = copytext("[string]",txttrack++, txttrack)
var/obj/letter/l = new(letter, pix_x, pix_y)
l.screen_loc = "[loc_x++],[loc_y]"
l.pixel_x = pix_x
l.pixel_y = pix_y
TEXT["[LABEL][index++]"] += l //keep track of text on screen
client.screen += l
I'm trying to make text on screen, however I was hoping not to just simply increase the screen_loc x variable for each letter, as this is very large spacing.
Instead I just want the increase the pixel offset of x by a certain amount. However all that I'm really struggling with is why does altering pixel_x or pixel_y in any manner not do anything?