ID:146325
 
Code:
mob
proc
Add_Screen_Text()
var/s_x = 8
var/s_y = 2

for(var/obj/alphabet/O in src.client.screen)
del(O)

for(var/X in src.create_name)
var/obj/alphabet/O=new/obj/alphabet
O.icon_state=X
O.screen_loc = "[s_x],[s_y]"
s_x += 1
O.pixel_x -= 10
src.client.screen+=O


Problem description:
What I am trying to achieve is a name selection type thingy just like a final fantasy game or something similar. This proc is my "Adding the text to the Clients Screen" part. As you can see, it just moves each new letter along one tile, however I would like it to make it a little less spaced, hopefully through the use of pixel_x and pixel_y. I've tried just making O.pixel_x/pixel_y different but all that does is make it so that the letters appear on top of each other.

Thanks for any help in advance guys.

- GunRunner

The screen_loc variable can handle pixel offsets as well. =)

screen_loc="1:14,1:16"
In response to YMIHere
Wow thanks heaps man. Simple answers... Dang... :)

- GunRunner