SpriteFont (v0.99.5RC) - new update, small bugfixes

Post and try out addons that are currently in development.

Post » Mon Aug 10, 2009 12:59 am

wow...
destroy
who woulda thunk it?
I'll get that in there by tomorrow night

thanks again
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Aug 10, 2009 1:39 am

No worries! :D

And thanks!
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Mon Aug 10, 2009 4:19 am

ty for this. will you continue to update this with newer versions
B
2
S
2
G
4
Posts: 259
Reputation: 1,968

Post » Mon Aug 10, 2009 9:37 pm

manontherun, no prob
and I'll continue for as long as I need
to be honest though...I'd like to finish it eventually :)

btw, changelog:
fixed stuff
added destroy, and other useful stuff
[url:1l1jrg6k]http://dl.getdropbox.com/u/1013446/SpriteFont.rar[/url:1l1jrg6k]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 11, 2009 2:27 am

Hate to point out even more stuff, but I found some issues... :)

CAP: http://www.konjak.org/spritefont.cap

When executing a "destroy"-command the object doesn't actually destroy until I create a new one of the same object. Left click is to create a text, right click to destroy. May be notable that the original SpriteFont has "Destroy on Start" ticked.

Making this example I also noticed that if I create multiple SpriteFonts out of the same one and the old ones aren't told to somehow always "show text" (as in if they are only told upon creation to show text) the old one will have its text disappear.

Still a kickin' plugin though, I just still can't destroy them right! :D
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Tue Aug 11, 2009 3:16 am

ok
fixed, redownload from the same link
thanks again
I forgot that the letters are separate objects and need to be destroyed, too

you'll notice however, that if you don't rearrange the events so the right click event is after the ShowText event, it'll still seem like it's still not working

this isn't the spritefont plugin though

this is because the way construct works, objects aren't really destroyed until the end of an event sheet,
look at the following cap, to demonstrate:

[url:33bzdvn6]http://dl.getdropbox.com/u/1013446/seewhat.cap[/url:33bzdvn6]

the purple sprite is destroyed immediately

the red dot is destroyed on startup,
so the one on screen is made by the purple sprite after the purple sprite is destroyed
the text is set by a private variable of the purple sprite after the purple sprite is destroyed

weird, I know, but it's a known issue, and it's not going to change until construct 2 I believe ashley said
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Aug 11, 2009 11:25 pm

I'm not sure how that relates to the text of SpriteFonts never disappearing, because I still can't destroy text properly, since your point is it will still destroy before the next screen refresh, and it doesn't.
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Tue Aug 11, 2009 11:52 pm

[quote="lucid":3s7fzahe]you'll notice however, that if you don't rearrange the events so the right click event is after the ShowText event, it'll still seem like it's still not working[/quote:3s7fzahe]
if you show text in the same event sheet, after you destroy them, they'll still put the text to screen that one last time
then be destroyed, and unable to erase it
arrange events so they don't put text to screen after you destroy

you can do this :

always, put text to screen
on right click destroy

and it'll work

if you do

on right click destroy
always put text to screen

like I said it's not just fontsprite object

if you take a normal sprite and do:


on right click destroy sprite
sprite:spawn sprite2

they will still spawn a sprite after they are destroyed on that last go through the event sheet
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Aug 12, 2009 12:09 am

Is destroying it that good of an idea? After all you can change the text any time you want, and you can change the sprites visibility likewise. I just always figured it was meant to be a static object.
Besides that don't you have to reset everything after its destroyed?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Wed Aug 12, 2009 12:48 am

you could just have a function to create and set all the options
and yeah, personally I would usually use it as a static object
but I can see it used in other ways as well,
like he said, he wants it to be words balloons, much easier as separate things
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

PreviousNext

Return to Work-in-progress addons

Who is online

Users browsing this forum: No registered users and 0 guests