2D Toolkit Forum

2D Toolkit => Support => Topic started by: wagenheimer on May 06, 2014, 02:49:54 pm

Title: Shine effect like this one!
Post by: wagenheimer on May 06, 2014, 02:49:54 pm
How can I achieve a Shine effect like this one using TK2D?

You can see it on this video : Foward it to 2:00
https://www.youtube.com/watch?v=ERgtbv14jjI

You can see a Shine effect (It comes from Upper Left and goes to Down Right) when the mouse is over the tokens.

I can simulate something similar using a Additive copy of the sprite, clipping it, but this way I can only animate from up to down or left to right, I cannot animate it animate it diagonally.

Anybody have any idea of how can I achieve an effect like that?


Title: Re: Shine effect like this one!
Post by: zettam on May 07, 2014, 03:16:56 am
how about a sprite animation for "shine" ?
Basically, all you have to do is, to trigger the animated sprites in correct order.

The other way I would try would be writing a custom shader that uses another textue input for a gradient, a float value for completion percentage and simply a screen space uvw mapping. It's not that difficult but I'm not entirely sure if it's needed for this case as I can see from the example video the sprites' shine is also being triggered separately as well.

Does it make sense?

Title: Re: Shine effect like this one!
Post by: wagenheimer on May 07, 2014, 03:24:49 am
The first ways is not bad, but I will need ton of images to animate all my sprites, and I think it's not a good idea.

Quote
The other way I would try would be writing a custom shader that uses another textue input for a gradient, a float value for completion percentage and simply a screen space uvw mapping. It's not that difficult but I'm not entirely sure if it's needed for this case as I can see from the example video the sprites' shine is also being triggered separately as well.

Seems interesting, but I have no idea of how to achieve this! I'm new to Unity and Shaders world! Would you be interested a paid work for this? =). I can pay with Paypal, if you have interest please make your price! =)