proc Text_On_Screen(mob/M, var/text, var/x, var/y) for(var/a=1;a<=length(text);a+=2) var/b = copytext(text,a,a+1) var/obj/L = new/obj L.screen_loc = "[round(a/2)+1],2" L.icon = 'font.dmi' L.icon_state = "[lowertext(b)]" M.client.screen += L var/c = copytext(text,a+1,a+2) var/obj/N = new/obj N.screen_loc = "[round(a/2)+1],1" N.icon = 'font.dmi' N.icon_state = "[lowertext(c)]" N.pixel_x += 16 M.client.screen += N
the output is something like this:
note: it calls Text_On_Screen(usr,"hello",2,2)
H L O E L
I intentionally put them on separate lines. However I want the bottom line to be shifted over 16 pixels. I have tried tinkering around with it a bit, but nothing has worked. Somebody please help.
-AbyssDragon