Image map Dead Spots?
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.
Image map Dead Spots?
Is there any way to make a dead spot within an image map? iv been looking into it and the only tutorial I can find is in a language I don't understand
So basically, I have this computer:
Bit crappy but get's the job done
I basically want to make it so when I'm using an image map, someone clicks the computer and a menu pop's up.
However, I don't want it to do this when they click next to the image ( basically the transparent background), if you get what I mean
So basically, I have this computer:
Bit crappy but get's the job done
I basically want to make it so when I'm using an image map, someone clicks the computer and a menu pop's up.
However, I don't want it to do this when they click next to the image ( basically the transparent background), if you get what I mean
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Image map Dead Spots?
I think all image maps use rectangular hotspots.
I would advise looking at ImageButton and focus_mask which makes only non transparent pixels sensitve...
I would advise looking at ImageButton and focus_mask which makes only non transparent pixels sensitve...
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Re: Image map Dead Spots?
Or you can use alpha (https://www.renpy.org/doc/html/screens.html#imagemap ) although that should be True by default.
Re: Image map Dead Spots?
Might sound like a noob question, but how do I use the alpha & enable it? like where do I put it, it's something iv never understood about the documentation when it shows the name & description of something, but not how to use it o.0philat wrote: ↑Sat Jul 22, 2017 12:45 pm Or you can use alpha (https://www.renpy.org/doc/html/screens.html#imagemap ) although that should be True by default.
Like would I put alpha = "true" within the image map code? as iv tried that and failed
- Milkymalk
- Miko-Class Veteran
- Posts: 753
- Joined: Wed Nov 23, 2011 5:30 pm
- Completed: Don't Look (AGS game)
- Projects: KANPEKI! ★Perfect Play★
- Organization: Crappy White Wings
- Location: Germany
- Contact:
Re: Image map Dead Spots?
You write it as an argument for the imagemap. Like so:
Code: Select all
imagemap:
alpha True
# other arguments
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Re: Image map Dead Spots?
Iv done that, but when I hover outside the "hover" image, the hover image flickers, even though I'm outside the overlay image o.0Milkymalk wrote: ↑Sat Jul 22, 2017 4:55 pm You write it as an argument for the imagemap. Like so:Code: Select all
imagemap: alpha True # other arguments
This is the code I have if it helps:
Code: Select all
screen bedroom:
imagemap:
alpha True
ground "Room_Main_Imagemap.png"
hover "Room_Main_Imagemap_h.png"
hotspot (134, 548, 219, 244) clicked Jump("side_table")
hotspot (334, 429, 637, 267) clicked Jump("bed")
hotspot (1055, 387, 152, 98) clicked Jump("dressser")
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Image map Dead Spots?
I recommend making that computer an imagebutton.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Image map Dead Spots?
You should check out the Imagebutton Cookbook tutorial for more details on how to deal with imagebuttons. Check it out...but check out the fixed version that I made rather than the original version: viewtopic.php?p=455107#p455107
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
Re: Image map Dead Spots?
The issue I'm having with that is it seems to be to open a screen? am I right? I don't want it to go to a screen, once someone click's it I want it to jump to another label, iv tried:trooper6 wrote: ↑Sat Jul 22, 2017 5:45 pm You should check out the Imagebutton Cookbook tutorial for more details on how to deal with imagebuttons. Check it out...but check out the fixed version that I made rather than the original version: viewtopic.php?p=455107#p455107
screen bedroom:
imagebutton auto "gui/Room_Bed_Imagemap_h.png" clicked Jump("bed")
but that's in the script file, I don't know how to show it from the screens file o.0
I'm just to noobish xD
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]