Hello
I am looking for an example to make a text blink thanks in advance
i am looking for an example to make a text blink
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3444
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: i am looking for an example to make a text blink
use a timer, if some time elapsed, flip a boolean variable; if it's false, do nothing (or draw your text in the "off" state, different color or whatever), if it's true, draw your text "normally".
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: i am looking for an example to make a text blink
sorry i did not understand anything
Re: i am looking for an example to make a text blink
I guess you could do something like this:
Code: Select all
function love.draw()
if math.floor(love.timer.getTime()) % 2 == 0 then
love.graphics.print("Your text here")
end
end
Re: i am looking for an example to make a text blink
Thank you steVeRoll
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 225 guests