Different images for True and False, kinda like imagemap

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
kafkaontheshore
Newbie
Posts: 22
Joined: Thu Apr 22, 2021 8:57 am
Contact:

Different images for True and False, kinda like imagemap

#1 Post by kafkaontheshore »

Hello there,
Is it possible to define areas which will be different depending on a variable being False or True?
Like the unhover and hover thing. We would only need two pictures this way. We basically want some kind of memory game. After you clicked on a button a variable is set True and only this area changes to the open picture.

I hope I explained my point well :p
Thank you for your time!

adrix89
Regular
Posts: 72
Joined: Fri Jun 26, 2009 12:15 pm
Contact:

Re: Different images for True and False, kinda like imagemap

#2 Post by adrix89 »

Maybe this?
https://www.renpy.org/doc/html/screens. ... -statement
It depends on what you want to achive.
Elements themselves can be modified in various like with Image Attributes, Atl, Styles, or directly by changing directly the children and thus hierarchical structure.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]