Search found 2 matches

by X888X
Sat Jan 24, 2015 10:01 pm
Forum: Support and Development
Topic: Fading Not Working
Replies: 2
Views: 2609

Re: Fading Not Working

the fact is that : - first loop alpha is decreased -> so alpha ~= 255 and alpha ~= 0 so nothing is drawn - second loop alpha ~= 255 and alpha ~= 0 so nothing is changed -> idem above. note that in love.draw you do the same whereas somethin or the other alpha = 255 seconds = 2 function love.update(d...
by X888X
Sat Jan 24, 2015 8:45 pm
Forum: Support and Development
Topic: Fading Not Working
Replies: 2
Views: 2609

Fading Not Working

All I get is a blank screen, I want to have a fade in and fade out thing for my game intro, but it isn't working, please help. alpha = 255 seconds = 2 function love.update(delayTime) if alpha == 255 then alpha = alpha-(255/seconds*delayTime) elseif alpha == 0 then alpha = alpha+(255/seconds*delayTim...