Advertisement
lavalevel

Fade txt_inputInfo

Oct 7th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local Button_scoutReleased = function( event )
  2.             print (" *** Scouting !!! *** ")
  3.             Button_scout.isVisible = false
  4.             Button_camp.isVisible = false
  5.             Button_moveOn.isVisible = false
  6.  
  7.     local txt_inputInfo = display.newText( rosetta:getString ( "You scout the " ) .. _gameData.location .. "." , 0, 0, native.systemFontBold, 16)
  8.     txt_inputInfo:setTextColor(225, 225, 225)
  9.     txt_inputInfo.x = display.contentCenterX
  10.     txt_inputInfo.y = _CY * 2.4
  11.  
  12.     gameGroup:insert( txt_inputInfo )
  13.  
  14.     local doneWithText = function ()
  15.         txt_inputInfo:removeSelf()
  16.     end
  17.  
  18.  
  19.     transition.to( gameGroup.txt_inputInfo { 0, time=500, delay=1500, alpha=0, onComplete=doneWithText } )
  20.  
  21.    
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement