SpriteFont How To

Post your own tutorials, guides and demos.

Post » Tue Jul 27, 2010 1:01 am

OK so I've just finished the SpriteFont How-to/Tutorial. This is just how I use and setup SpriteFont in my projects, I have never really come across any major bugs when using it in my games, but maybe I wasn't pushing it that hard.

The How To includes:

[list:11lvq42l]Setting up SpriteFont via a family
Writing text
Showing text
Multiple SpriteFonts
Multiple Layouts
Resizing Spritefont
Editbox
Showing text according to Gloabal Variable
Cursor following text
Changing alignment[/list:u:11lvq42l]

It's 2 in the morning here so I've tried to double check there are no mistakes but I might have missed something along the way - so just let me know :) To view the How To I suggest first running the cap and then exploring the different layouts.

http://dl.dropbox.com/u/1646976/spritefonttutorial.cap

You'll need the latest unstable build and Lucid's SpriteFont plugin for it to work :)

Unstable Build
SpriteFont Plugin

Questions, comments, suggestions and offers of marriage welcome.

:)
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Jul 27, 2010 2:21 am

One little quirk I'll add is spritefont defaults to zero when your adding frames.
Not really a biggy...
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Tue Jul 27, 2010 10:47 am

Nice tutorial,
I would have gone crazy happy over this tutorial If you didn't show me before!
B
2
S
2
G
3
Posts: 140
Reputation: 1,530


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest