You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality.

Cycle Through Images In A GUI

Started by
obituary1992
, Oct 30 2015 04:27 AM

Please log in to reply

3 replies to this topic

obituary1992

Members

2 posts

Last active: Nov 02 2015 07:39 AM

Joined: 30 Oct 2015

Hi all,

I am attempting to create a GUI that displays an image when it loads up, and allowing the user to cycle through the images in a directory by pressing the left and right arrow keys on the keyboard. Still very much a WIP, I've found myself getting hung up on this issue for hours now, and no amount of searching the Internet for answers is helping.

Right now, I have 10 images that I would like to cycle through - 1,png (this is the default image), 2.png, 3.png, and so on - and when reaching the last image, pressing the right arrow will bring the user back to the first image (eventually the left arrow will bring the user back to the last image if pressed on the first image, but gotta walk before ya run).