thanks a lot for you'r support
Goodbye
local AA = {'timer' = 0, 'stage' = 0, 'stages' = 24, 'stagetime' = 60, 'image' = 0}
AA.image = image("gfx/block.bmp", 320, 240, 3)
imagescale(AA.image, 20, 15)
addhook("second", "AA_second")
function AA_second()
AA.timer = AA.timer + 1
if AA.timer == AA.stagetime then
AA.timer = 0
AA.stage = AA.stage + 1
if AA.stage == AA.stages then
AA.stage = 0
end
end
local alphastage = 0.7 * (AA.stage * AA.timer) / (AA.stages * AA.stagetime)
imagealpha(AA.image, alphastage)
end