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.
I have an imagemap that uses partially transparent PNGs, but the hotspot rectangles are being drawn onto the imagemap in some almost bit-wise AND/OR fashion (that's kinda what they look like; the resulting image isn't one or the other, but a blend that isn't a direct overlay).
I probably should be using imagebuttons for this quick_menu replacement on top of a normal alpha image, but imagemaps are less work and easier to maintain later on. But, I'm still learning, so could be wrong on all counts.
(the large image is rendered in Ren'Py, but I added 'idle/hovered' captions / cleaned the layout with GIMP)
So, the way an imagemap works is to figure out ground, hover, and idle images. The button is made out of the hover and idle images, and composed on the ground. You might be able to get away with a blank idle image, and just use hover and ground.
Supporting creators since 2004 (When was the last time you backed up your game?)
PyTom wrote: ↑Wed Mar 21, 2018 7:39 pm
So, the way an imagemap works is to figure out ground, hover, and idle images. The button is made out of the hover and idle images, and composed on the ground. You might be able to get away with a blank idle image, and just use hover and ground.
Using the transparent Idle image / switching Idle to Ground removed the box around the imagemap at its idle state, but I'm still getting an 'overlay'-type graphic at its hover state:
You said the idle and hover images are composited on top of the ground image, which would cause the overlay graphic effect, as the pixels are just being added to one another (or a similar formula).
I tried a transparent ground image with normal idle/hover, but that resulted in no image at idle, and a hover image at hover. I could be misunderstanding, but is there a way to composite on top of a transparent image created by Ren'Py (blank-idle / blank-hover / blank-other), as that would remove the 'overlay' effect?