ID:272808
 
This should be fairly simple, but I honestly suck at math. Each character is 16x16, and the screen is 13x13.

How would I calculate the start point of writing the text? Each tile is 32x32 so 2 characters should fit in each tile for a max of 26 characters, so what I've come up with:
(26-chars) doesn't really work, the text flies way off screen. I know I probably sound really dumb...

It'd be great if someone could help though.

[edit] Grammar and spelling errors.
[edit 2] Thanks to Keeth and Dever from Chatters, the problem is solved:
            var/screen_area=13
var/text_area=length(text)/2
var/base=(screen_area-text_area)/2 //starting X
The screen is 13x13 TILES, while your icons (characters in this case) are 16x16 PIXELS. ;p There's a slight difference lol

1 tile = 32x32 pixels
world/view = 6 //6 tiles wide, and 6 tiles height

world/view = "6x7" //6 tiles wide and 7 tiles height
In response to Spunky_Girl
Yes, I know.

I was just saying each letter (or character...I didn't mean playable character. I meant character as in abc123!@#etc.) is 16x16. I'm sure the size will have something to do in calculating the center, I just don't know what exactly the algorithm is.
In response to Slime Lord
Oh, sorry for misinterpreting your post :\
In response to Spunky_Girl
Spunky_Girl wrote:
Oh, sorry for misinterpreting your post :\

No problem, it was my mistake for not being more clear.
In response to Spunky_Girl
Spunky_Girl wrote:
world/view = 6 //6 tiles wide, and 6 tiles height

Not really: [link]
With a view = N, you see N tiles in every direction from your screen's center, so both the width and height are N * 2 + 1 (the 1 is to include the tile of the actual center, the multiplication by 2 is of course to count both directions in the axis from the center).
So a view value of 6 is in fact equivalent to one of "13x13".
In response to Kaioken
Oh, it's been so long since I've used an actual numerical value for world/view lol.