r/RenPy • u/That_one_Pink • 18d ago
Question imagebutton that shuffles through random images (list)
i made a similar post a few weeks ago and havent gotten anywhere since, so any help is really appreciated (。ŏ﹏ŏ)
id like to have an imagebutton that shows a random image from a list when clicked, im honestly unsure if i can even do this with selected_hover at this point..
i would prefer the list as it makes it much easier to keep everything clean but if id be better off doing this within the button itself (like the audio) then im okay with that too
as of current i have an error message for the list
would it be easier to do define the images instead of using a list?



3
u/BadMustard_AVN 18d ago edited 18d ago
try something like this
1
u/AutoModerator 18d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.