[Plugin] Spritefont (28th August 2012)

Post your completed addons to share with the community

Post » Thu Mar 14, 2013 6:12 pm

Hi Mipey!
When will you make effects support? (Burn, Color, Darken ect)

Developer2013-03-14 18:16:06
B
3
Posts: 12
Reputation: 299

Post » Thu Mar 14, 2013 7:08 pm

No idea how to implement support for those.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Mar 21, 2013 2:33 pm

where is the "Text is" event? Is it under a different name? I cannot find it. When I click on the Text is event in the example, it opens the is between angel window
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Thu Mar 21, 2013 7:18 pm

Oh, that one has been obsoleted because of a bug I couldn't solve. It didn't pick correct instances.

There is system compare action which does its job well, so I saw no need in doing the spritefont text compare event.Mipey2013-03-21 19:21:37
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Apr 03, 2013 7:40 pm

Hi Mipey! I have a sprite 16x16 with the figure "0". I've added this figure to Spritefont, adjusted the settings to 16x16, but I didn't get a match in the end - image is smaller in spritefont and has a distortion. Why and how can I fix it?

my capx: http://dl.dropbox.com/u/36082595/c2%20temp/bug_spritefont.capx
Construct 2 r122 betaDeveloper2013-04-03 19:49:48
B
3
Posts: 12
Reputation: 299

Post » Fri Apr 05, 2013 2:27 pm

You are right, @Developer, looks like my math is screwy. That's what happens when you let an amateur code a plugin!

It isn't distorted if you make the spritefont object size twice as large as the individual glyph, in this case at least 32x32. So just make the spritefont object larger than you want it to display.

One of those days I'll really have to sit down and crunch those numbers, since it appears that nobody else is willing to pick this mess up. Oh well!Mipey2013-04-05 14:28:51
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Fri Apr 05, 2013 8:11 pm

I've replaced this

spritefont/runtime.js

this.type.gl_rect.set(0,0,(this.bctx.canvas.width-1)*this.scale,(this.bctx.canvas.height-1)*this.scale); // remember this uses coordinates, so width/height minus one

to this

this.type.gl_rect.set(0,0,this.bctx.canvas.width*this.scale,this.bctx.canvas.height*this.scale); // remember this uses coordinates, so width/height minus one

Error is gone. For what was -1 width/height? Will it cause to any consequences?
B
3
Posts: 12
Reputation: 299

Post » Fri Apr 05, 2013 10:22 pm

Because I assumed that the last X or Y index is one less than the weight or height in zero-based coordinate system.

So indexes for 16x16 sprites would be from 0 to 15.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Apr 06, 2013 8:10 am

Any chances to update this plugin due to save and load system?
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Apr 06, 2013 12:45 pm

I've already stated on page 14 that I no longer am working on this plugin. I simply do not have expertise nor time to provide the requested features and fixes. Spritefont is at best an amateur's shoddy attempt at plugin development; I simply cannot meet the demands. I am but a writer, not a programmer.

Sorry.

So far, nobody has offered to pick it up, nor am I aware of anyone attempting their own spritefont solution.

Guess I'll have to put something up in the first post...
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 1 guest