Advertisement
Thetroz

Efecto de noche por Aritxy

Oct 2nd, 2016
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. id=1
  2. time=0
  3. function eventLoop()
  4.     ui.addTextArea(0,"",nil,0,0,800,400,0x191919,0x191919,0.6,true)
  5.     time=time+0.5
  6.     for i=0,10 do
  7.             ui.addTextArea(id,"<font size='20'><b><j>•",nil,math.random(0,800),math.random(0,400),nil,nil,"0","0",0.6,true)
  8.             id=id+1
  9.     end
  10.     if time>=1 then
  11.         for i=1,10 do
  12.             ui.removeTextArea(i,nil)
  13.         end
  14.         time=0
  15.         id=1
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement