Better way for centering text?

Game Editor comments and discussion.

Better way for centering text?

Postby Novice » Tue Aug 22, 2006 3:01 pm

Does anyone know a better way of making text stay centered on the screen eaven while it changes. I'm using this code in draw actor
Code: Select all
x=view.x+(88-width/2);

(where 88 is half the width of my screen) but it dosent look very good while the text is changing, it shakes a little before it is centered, and is realy annoying.
Any suggestion? TIA
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest