Simple example:
Code: Select all
PopupTextManagerInstance:addPopup(
{
text = "Example Text",
font = yourFontInstance
color = {r = 255, g = 0, b = 0, a = 255},
x = 200,
y = 200,
scaleX = 4,
scaleY = 4,
fadeIn = {start = 0.2, finish = 0.7},
fadeOut = {start = 0.7, finish = 2},
dX = 40,
dY = 40,
duration = 2
})
Features
- Input a Class base for PopupTextManager
- Use your own render function
- Move by parameters
- Circular Motion
- Fade In and Fade Out
- Blend Modes, Scaling, Rotation, Time on Screen
- Add your own font to the text
Add the PopupTextManager instance to the love.update a love.draw function, the it will take care of everything
Download it on: https://github.com/MrcSnm/Love2D-Floating-Text