slowly disappearing sprite doesn't work
I tried to make a slowly diappearing sprite creating a specific material: And then making a blueprint to gradually change the opacity from 1 to 0: The problem is that it works only with sprite that normally have uniform opacity, if I have some sprite with full opaque parts (opacity=1) and translucent (opacity=0.3/4) parts the last one are instantly brought to a opacity value of 1 and have a terrible appearance...
How can I let a sprite slowly fade on triggerbox overlap without changing opacity or at least without increasing transparent parts' opacity??
asked May 28 '15 at 04:39 PM in Bug Reports
I am pretty sure I got what you needed to work. It was a simple fix, and hopefully this is what you are looking for when fading the sprite.
Open up your 'Dis_Material' and set it up how I have below. Be sure your set up matches mine own, and your fading should work as expected.
Fading Translucent Sprite
Let me know if you are still having some trouble.
answered Jun 08 '15 at 06:43 PM
I managed to get a working prototype of what you are attempting to do and my steps and content are listed below. I set up my approach a bit differently as far as calling on the timeline, but I will do my best to point out the differences as well as make it clear on the important parts to take note.
Here you can see I created a simple 'Actor Blueprint' with a PaperSprite component and a Box collision. Take note of the component variables as well. I only had to create one variable since it will be referencing itself there is no need for a target variable.
Blueprint Event Graph
My set up is similar to yours except for the extra variables and nodes.
Fading Sprite Material
Here I have set the material properties of the Dynamic Material created within the blueprint. Still using the DefaultLitSpriteMaterial as its parent class.
I started at the value of 1.0 since that is the 'Opacity' the sprite will fade out from, and gradually fade to 0.0 along a linear curve over 5.0 seconds.
Sprite Fading in Scene
Finally we test to see the sprite fade upon overlapping the collision box. If you are still having trouble please let me know, but hopefully this gets you on the right path!
answered Jun 03 '15 at 09:56 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here