[Plugin] Spritefont (28th August 2012)

Post your completed addons to share with the community

Post » Thu Nov 10, 2011 9:57 am

Well, I'm a novice at the whole plugin dev show, so I can't promise any complex features like that. Once I acquire more "know-how", I may consider rewriting the plugin to allow for such vile trickery. Heh.

Until then, each letter has an allocated amount of space within the font strip texture, you can move letters manually within that space - up or down a bit. Horizontal space is a bit trickier without a plugin rewrite.

Basically, the plugin is a quick, beginner's dirty job (even though I slaved over it for several days).
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Nov 12, 2011 10:36 am

Added to my test version of Tiny Tombs and it works a treat.

Excellent work Mipey.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Sun Nov 13, 2011 10:14 pm

Great plugin Mipey! Very simple to use and easy to set up.

One question though; are you planning on adding "write text"? That would be great for dialogue and stuff!

edit: Until then..is there any way to pull this off with just events?Tokinsom2011-11-13 22:14:42
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Nov 13, 2011 11:52 pm

@Tokinsom are you talking about a typewriter effect ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Nov 14, 2011 1:03 am

Yes, exactly! Thanks for the link.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Thu Nov 17, 2011 1:42 pm

Oh, man. WebGL. Need to review the plugin in order to take advantage of the new renderer, while still working on "old" 2d canvas.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Nov 20, 2011 5:05 am

Hope you do well ;)
If I include spritefont in my project with webGL enabled, I get a grey screen.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Tue Nov 22, 2011 10:13 pm

Preliminary update!

Right, I've implemented basic WebGL support. It's very... rough right now. A day's work.

IMPORTANT NOTE: may have to use a power of 2 texture (there are cases when it only shows black blocks... haven't figured out why)

ANOTHER NOTE: WebGL support is separate from regular 2D canvas context, so it should be safe to continue working on your projects using the SpriteFont. If you have an idea what could cause the "black plague" problem, let me know!
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Nov 23, 2011 8:52 am

Looks great!
I am still getting issues in regards to seeing small artefacts (thin vertical lines) around the edges of letters, and distortions (ragged edges, displaced pixels). No idea what is causing this.
I use WebGL and am not using power of two textures, so that's good.
But I can add spritefont to my project without worry now? Updates won't break all my spritefont objects?sqiddster2011-11-23 09:02:55
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Wed Nov 23, 2011 9:29 am

I've just uploaded another update, Ashley pointed out that I was loading the texture with tiling parameter on. So now it should work nicely!

I've also fixed offsets. For the most parts.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests