i did choose action timer, since there was in depth guide. but i found some issue with using my #Alpha# variable at string meters. i want to make fade in/fade out effect on text.
so the code is smth like this
Code: Select all
[Variables]
Alpha=0
U=[!UpdateMeasure MeasureSlider][!UpdateMeter *][!Redraw]
[Fading]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat FadeIn,16,40
FadeIn=[!SetVariable Alpha "(Clamp(#Alpha#-10,0,255))"][!UpdateMeasure Fading]#U#
ActionList2=Repeat FadeOut,16,40
FadeOut=[!SetVariable Alpha "(Clamp(#Alpha#+10,0,255))"][!UpdateMeasure Fading]#U#
DynamicVariables=1
IgnoreWarnings=1
IfCondition=(#Alpha#<1)
IfTrueAction=[!HideMeterGroup Nya]
IfCondition2=(#Alpha#>1)
IfTrueAction2=[!ShowMeterGroup Nya]
[Meter]
Meter=String
MeterStyle=Text
W=69
H=57
X=20
Y=32
DynamicVariables=1
FontColor=255,255,255,#Alpha#
Hidden=1
Group=Nya
the problem is that transition goes wrong during fade out. it goes from white to black, and then triggers ifCondition at then when Alpha is below 1.
i cant figure why it goes from white to black instead of going from white to trasparent. what im doing wrong?