How do I make a pulsing sprite font effect?

Get help using Construct 2

Post » Thu Jul 23, 2015 7:09 pm

Hi everyone,

So I'm using spritefont and spritefont+ to see if it will work but i'm having no luck

https://youtu.be/PDz6NZ6ZRs4 see how the score "boings" when you score a point? i'm trying to achieve that effect.

i want to scale the SIZE of the number to create a "boing" effect. however it seems that this isn't effecting the font.. i believe what is happening in this case using LiteTween is it's changing the size of the box itself not the font within..

So I'm wondering how this could be achieved. when i try to apply a value.. i'm not sure how i'd apply that exactly.. that seems like the possible solution but i'm missing the link to be able to apply a tween value to something like perhaps the "scale" parameter found in both spritefont objects.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Thu Jul 23, 2015 7:18 pm

You can combine sine behavior (with value only) with the scale propertie on spritefont and stop sine at the end of the period
Image Image
B
23
S
13
G
135
Posts: 871
Reputation: 70,345

Post » Thu Jul 23, 2015 8:36 pm

ah good suggestion. i'll give that a try. i'm familiar with using Sine in other ways.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Thu Jul 23, 2015 8:41 pm

You're welcome
Quick example here
Image Image
B
23
S
13
G
135
Posts: 871
Reputation: 70,345

Post » Thu Jul 23, 2015 8:53 pm

sweet that looks great.

Thanks! :)
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Sat Jul 25, 2015 4:06 am

ok i got it to work using LiteTween.. i'm not sure it was the most efficient way to do it but it defiitely helped seeing your 'every tick' approach.. i just had to make it conditional to manage when the grow and shrink tweens fired off.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Mon Apr 24, 2017 2:21 pm

thanks! this helped me..

wasn't sure why Size doesn't work on SpriteFonts.. but the value and then setting scale from that works great.. thanks!
B
97
S
32
G
16
Posts: 1,199
Reputation: 16,680


Return to How do I....?

Who is online

Users browsing this forum: amazingdream, lordsas, mekonbekon and 50 guests