How to make image changes while touching the button

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
User avatar
KalaCansado
Regular
Posts: 27
Joined: Sat Jun 16, 2012 9:29 am
Projects: The Feast of Glass
Contact:

How to make image changes while touching the button

#1 Post by KalaCansado »

Sorry for being such a newbie but I really have some question about this OTL

I want to make a system that while the mouse touching (not clicking) a button, a place or a image (not the button) will change, and while moving the mouse to the other side or other button, it turn back to normal or the image will change to be others.
Those image are at the same place.
And sorry my English is not good and I don't know how to say it, so I draw a example below and it may makes the question clearer:

Image

I think of using imagemaps or layers (with saved picture) at the first time but seems I want to used this in my save function so it can not be used.

What should I use to build this system and does it possible to build it? How can I build it?
Sorry for disturbing..OTL
I really hope to make this things T^T

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: How to make image changes while touching the button

#2 Post by Alex »

You need to set desireable actions to "hovered" and "unhovered" states of your buttons (or imagemap hotspots). This are examples that will show how it works:
http://lemmasoft.renai.us/forums/viewto ... 22#p131936
http://lemmasoft.renai.us/forums/viewto ... 90#p181690

User avatar
KalaCansado
Regular
Posts: 27
Joined: Sat Jun 16, 2012 9:29 am
Projects: The Feast of Glass
Contact:

Re: How to make image changes while touching the button

#3 Post by KalaCansado »

Alex wrote:You need to set desireable actions to "hovered" and "unhovered" states of your buttons (or imagemap hotspots). This are examples that will show how it works:
http://lemmasoft.renai.us/forums/viewto ... 22#p131936
http://lemmasoft.renai.us/forums/viewto ... 90#p181690
Thanks a lot! I am going to try it now!
Thank you so much for the two example ^^

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot