Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floatingText = display.newText(floatingTextGroup, "", math.random(remainingHPbar.x, remainingHPbar.x + 40), remainingHPbar.y + 20, RegFont, "60")
- floatingText.anchorX = 0
- floatingText.anchorY = 0
- if num < 0 then
- floatingText.text = (num)
- floatingText.fill = {0}
- elseif num > 0 then
- floatingText.text = ("+ "..num)
- floatingText.fill = {0, 166/255, 81/255}
- end
- transition.to( floatingText, {y = enemyName.y-100, time = 1000, alpha = 0, onComplete = function()
- floatingText:removeSelf() end})
Advertisement
Add Comment
Please, Sign In to add comment