AS2 Round Off To Whole Number
AS2 Round Off To Whole Number
- Started
- Last post
- 5 Responses
- ceiling_cat
Quick question, how do I get this code to round off the number to a whole digit?
_root.text_mc._x = Stage.width / 2 - 49;
- ceiling_cat0
_root.text_mc._x = Math.round(Stage.width / 2 - 49);
Like this? I tried it but my pixel font is still blurry. I can't if it's the coding or the font. Thanks
- Continuity0
Is your type set on whole pixels?
- Continuity0
Wait a sec ... pixel font? Check to see if you have anti-aliasing turned off. Also check the point size, chances are it is supposed to be at 7 or 8, or something like that.
- ceiling_cat0
For some reason, letter spacing is the culprit. As soon as I set it to 0, everything is sharp. Lazer eye tiem.