Guest User

Untitled

a guest
May 14th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. floatingText = display.newText(floatingTextGroup, "", math.random(remainingHPbar.x, remainingHPbar.x + 40), remainingHPbar.y + 20, RegFont, "60")
  2. floatingText.anchorX = 0
  3. floatingText.anchorY = 0
  4. if num < 0 then
  5. floatingText.text = (num)
  6. floatingText.fill = {0}
  7. elseif num > 0 then
  8. floatingText.text = ("+ "..num)
  9. floatingText.fill = {0, 166/255, 81/255}
  10. end
  11. transition.to( floatingText, {y = enemyName.y-100, time = 1000, alpha = 0, onComplete = function()
  12. floatingText:removeSelf() end})
Advertisement
Add Comment
Please, Sign In to add comment