Suggestion:Sprite Font

Forum Home Forum Home > Construct 2 General > Construct 2 general
 Post Reply Post Reply Page  12>
Author
4,823 Rep
Post Options Post Options   Quote PixelPalette Quote  Post ReplyReply Direct Link To This Post Topic: Suggestion:Sprite Font
    Posted: 01 Sep 2011 at 6:55am
Would like to see a sprite fonts plugin sometime. Need it for my games.

Thanks. 8)
Back to Top
7,061 Rep
Post Options Post Options   Quote R0J0hound Quote  Post ReplyReply Direct Link To This Post Posted: 01 Sep 2011 at 8:26pm
You can implement it with events. Whenever you change some text, set redraw to true.
http://dl.dropbox.com/u/5426011/c2/spritefont.capx
Back to Top
4,823 Rep
Post Options Post Options   Quote PixelPalette Quote  Post ReplyReply Direct Link To This Post Posted: 02 Sep 2011 at 1:32am
"You can implement it with events. Whenever you change some text, set redraw to true.
http://dl.dropbox.com/u/5426011/c2/spritefont.capx"

Thanks Rojohound.8)
Back to Top
2,681 Rep
Post Options Post Options   Quote Azu Quote  Post ReplyReply Direct Link To This Post Posted: 02 Sep 2011 at 5:40am
Omg. I guess I need 80 bucks now. 30 for this, and 50 doe Disgaea 4. Maybe I'll see something.
Back to Top
9,712 Rep
Post Options Post Options   Quote gammabeam Quote  Post ReplyReply Direct Link To This Post Posted: 19 Sep 2011 at 8:29pm
This is so great, I'm gonna try that out later.

Will it hit hard on the performance? Considering it will be a part of the HUD and will not move/rotate/scale...
Back to Top
2,906 Rep
Post Options Post Options   Quote wilfryed Quote  Post ReplyReply Direct Link To This Post Posted: 23 Oct 2011 at 6:06pm
Hey that sounds good, but not really works for your "fps text", the sprites don't refresh, they just superimpose.
Back to Top

Moderator
28,550 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 23 Oct 2011 at 6:38pm
I had made this example over r0j0hound's primary example, to make it work for score displaying for example.
I also added a "State" instance variable, to check if I want the text to be displayed or hidden.

Just check it out, and test in browser.
Back to Top
2,906 Rep
Post Options Post Options   Quote wilfryed Quote  Post ReplyReply Direct Link To This Post Posted: 24 Oct 2011 at 3:04am
Niice, i'll test it tomorrow ! Hope that was better than my way !
Back to Top
1,486 Rep
Post Options Post Options   Quote eryltalbot Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2012 at 9:06pm
NICE!!! Thanks for the code. I still have a lot to learn. *sob*
Back to Top
10,628 Rep
Post Options Post Options   Quote Joannesalfa Quote  Post ReplyReply Direct Link To This Post Posted: 03 Oct 2012 at 9:12am
Isn't possible to use awesome ROJOhound's method for Text Box?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down