• Fading Text
    5 replies, posted
Hello people So i have been dealing with making an simple 2D Text that well just fades out i have been triying to change alpha to 255 to at least make it invisible and badly it diedent work so if any of you has any hints or an valuable comment feel free to post
Post the code you have currently
[LUA/] local starttime local fadeouttime = 60 hook.Add("HUDPaint" , "dicks" , function() if not starttime then starttime = CurTime() end local fract = (CurTime() - starttime)/ fadeouttime draw.SimpleText("<span class="highlight">Fading</span> out..." , "ScoreboardText" , ScrW() / 3 , ScrH() / 2 , Color(255 , 255 , 125 , 255-fract*255)) end) [LUA/]
[QUOTE=werewolf0020;29546460][LUA/] local starttime local fadeouttime = 60 hook.Add("HUDPaint" , "dicks" , function() if not starttime then starttime = CurTime() end local fract = (CurTime() - starttime)/ fadeouttime draw.SimpleText("<span class="highlight">Fading</span> out..." , "ScoreboardText" , ScrW() / 3 , ScrH() / 2 , Color(255 , 255 , 125 , 255-fract*255)) end) [LUA/][/QUOTE] I get the feeling you ripped that right out of another thread simply because of that "<span class="highlight">" stuff that seems to be a bug with luaboxs
Did you just copy the code from another thread and use it without removing the span tags? Because it works without them.
pretty much yeah i was going to somewhere else and i did it one thing i know i shouldent do
Sorry, you need to Log In to post a reply to this thread.