As far as I have been able to inform me this DECORATE should work perfectly, but it does not do it, the sprite simply appears normal without making any type of change in its alpha.
Code: Select all
Actor Mist1 30007
{
Height 15
Radius 10
RenderStyle "Translucent"
Alpha 1.0
+NoClip
+NoGravity
States
{
Spawn:
MIST C 0
GoTo State1
State1:
MIST C 1 A_SetRenderStyle(1.0,Style_Translucent)
TNT1 A 0 A_JumpIfCloser(512,"State2")
Loop
State2:
TNT1 A 0 A_JumpIfCloser(100,"Alpha90")
TNT1 A 0 A_JumpIfCloser(90,"Alpha80")
TNT1 A 0 A_JumpIfCloser(80,"Alpha70")
TNT1 A 0 A_JumpIfCloser(70,"Alpha60")
TNT1 A 0 A_JumpIfCloser(60,"Alpha50")
TNT1 A 0 A_JumpIfCloser(50,"Alpha40")
TNT1 A 0 A_JumpIfCloser(40,"Alpha30")
TNT1 A 0 A_JumpIfCloser(30,"Alpha20")
TNT1 A 0 A_JumpIfCloser(20,"Alpha10")
TNT1 A 0 A_JumpIfCloser(10,"Alpha0")
GoTo State1
Alpha90:
MIST C 0 A_SetRenderStyle(0.9,Style_Translucent)
GoTo State2
Alpha80:
MIST C 0 A_SetRenderStyle(0.8,Style_Translucent)
GoTo State2
Alpha70:
MIST C 0 A_SetRenderStyle(0.7,Style_Translucent)
GoTo State2
Alpha60:
MIST C 0 A_SetRenderStyle(0.6,Style_Translucent)
GoTo State2
Alpha50:
MIST C 0 A_SetRenderStyle(0.5,Style_Translucent)
GoTo State2
Alpha40:
MIST C 0 A_SetRenderStyle(0.4,Style_Translucent)
GoTo State2
Alpha30:
MIST C 0 A_SetRenderStyle(0.3,Style_Translucent)
GoTo State2
Alpha20:
MIST C 0 A_SetRenderStyle(0.2,Style_Translucent)
GoTo State2
Alpha10:
MIST C 0 A_SetRenderStyle(0.1,Style_Translucent)
GoTo State2
Alpha0:
MIST C 0 A_SetRenderStyle(0.0,Style_None)
GoTo State2
}
}