Well, I've got another question.
I've got screen with an imagemap, which has ground and hover images. Ground and hover images are mostly transparent. I need to set some transparent area of that images as a hotspot. Or some kind of button. But, as I see, RenPy disallow that because it recognises as hover and clicked area only non-transparetn part of the image.
So please give me some advice. What ca I implement to get transparent image part to be clickable?
Clicked hotspots on transparent images
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.
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.
- laure44
- Regular
- Posts: 60
- Joined: Mon Mar 08, 2021 10:55 pm
- Projects: Arkan'sTower, Gemshine Lorelei!
- Location: France
- Contact:
Re: Clicked hotspots on transparent images
The alpha property used by imagemaps is set on True by default, but you can set it to False.
(You can check all the properties in the documentation https://www.renpy.org/doc/html/screens. ... p#imagemap )
(You can check all the properties in the documentation https://www.renpy.org/doc/html/screens. ... p#imagemap )
Code: Select all
imagemap:
alpha False
Re: Clicked hotspots on transparent images
Thank you.
This option is good, but it turns my hard-shaped buttons into rectangulars. Thats not good. I've decided just to put some color filling with low opacity on my idle/hover images, so renpy's alpha algorythms will recognize needed areas.
I think, next time I will use imagebuttons with hover alpha functions.
- Ocelot
- Eileen-Class Veteran
- Posts: 1882
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Clicked hotspots on transparent images
Yes, that was one of the reasons, why I had to drop imagemaps and transition to imagebuttons. Hope this will be the only issue you encounter.
< < insert Rick Cook quote here > >
Who is online
Users browsing this forum: No registered users