Spritefonts animation frames?

Get help using Construct 2

Post » Fri Apr 10, 2015 2:35 pm

Hey all,

Is it possible to give the spritefonts object animation frames?.
I was thinking of creating one where 1 frame had one font and the other frame had a different styled font, but then saw that it does not have the animation frame option.
B
16
S
4
Posts: 138
Reputation: 1,454

Post » Fri Apr 10, 2015 5:04 pm

You'd have to create another spritefont object.

Here's an old capx for rolling your own bitmap font.. since it uses the sprite object, you can easily add different animations for the different font styles.

Scrolly
B
15
S
5
G
7
Posts: 876
Reputation: 5,650

Post » Fri Apr 10, 2015 8:14 pm

You could try adding another spritefont object which contains the different frames. For example, you'll have SpriteFontStyle1 and SpriteFontStyle2.

In game, place both objects in the same place. Manually toggle the visibility of both sprite font objects to achieve the animation you want.
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053


Return to How do I....?

Who is online

Users browsing this forum: Kermad, lukewasthefish, marc254, tarek2, Unconnected and 12 guests