Image Slide Show

Hi All,

Please let me know a way to display a series of images at the top right hand corner of the screen. The different images sould fade in or out randomly without any manual intervention.

Your assistance is appreciated.

Regards. [import]uid: 87460 topic_id: 15516 reply_id: 315516[/import]

use the transition.to with the time delay you want to fade the images out, and you can also set up a transition to fadein and then on completion, it should use a random duration to fade out.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15516 reply_id: 57331[/import]

Thanks JayantV… Your suggestion gave me a good lead. However, I can’t seem to get the fadein/fadeout working too well, so I settled for the following. Any further suggestions which may allow me to smoothly fadein or out is appreciated.

Cheers.

local function show_image()
local X = math.random (5)
local image_Table = {}
image_Table[1] = “image1.jpg”
image_Table[2] = “image2.jpg”
image_Table[3] = “image3.jpg”
image_Table[4] = “image4.jpg”
image_Table[5] = “image5.jpg”

transition.to(display.newImage(image_Table[X], 200, 0), { time = 50000, alpha = 1 })
end

timer.performWithDelay(5000, show_image, 0) [import]uid: 87460 topic_id: 15516 reply_id: 57387[/import]