local current_obraz = 1
local obrazy = {
'1.png',
'2.png',
-- itd
}
local tick = getTickCount()
function nextObraz()
if #obrazy<current_obraz then
current_obraz = 1
else
current_obraz = current_obraz + 1
end
tick = getTickCount()
end
function moveObraz()
local x = interpolateBetween(0,0,0,500,0,0,(getTickCount-tick)/1000,'Linear')
dxDrawImage(x,300,100,100,obrazy[current_obraz])
if (getTickCount()-tick)>1000 then
nextObraz()
end
end