I'm really new to making image maps so I apologize in advance.
So I have this imagemap wherein the player chooses where they want to go. And I want to add icons of the character/s who're currently in that area to look like this :
However, my concern is that I'll be using this imagemap a lot of times and it's not like the characters will always be in the same place. I initially planned on just making different imagemaps for each time I'll be using it. But I feel like doing that will be really tedious. And so I was wondering if there's another way around this? I would really appreciate any help on this.
Imagemap Variations?
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.
- peroxidehead
- Newbie
- Posts: 20
- Joined: Thu Mar 13, 2014 7:29 am
- Projects: Cat's Cradle
- Tumblr: nekomacradle
- Contact:
Re: Imagemap Variations?
Is there any reason why you don't use images with very specific xalign and yalign?
I can assume that you couldn't then just click "through" these to the imagemap behind, or if you can, I don't know the controlling parameter.
I can assume that you couldn't then just click "through" these to the imagemap behind, or if you can, I don't know the controlling parameter.
If we are what we repeatedly do, then good coding is not an act, but a habit
- peroxidehead
- Newbie
- Posts: 20
- Joined: Thu Mar 13, 2014 7:29 am
- Projects: Cat's Cradle
- Tumblr: nekomacradle
- Contact:
Re: Imagemap Variations?
I'm , er, really new to imagemaps? I kind of thought that imagemaps works as one whole clunk of image. I didn't actually think that I could use specific images instead. I'll be sure to try it out this way though. Thank you for taking the time to answer my question!Iylae wrote:Is there any reason why you don't use images with very specific xalign and yalign?
I can assume that you couldn't then just click "through" these to the imagemap behind, or if you can, I don't know the controlling parameter.
Re: Imagemap Variations?
Assuming you're using a screen, the imagemap and the added images should be separate.
The above is concept only: how you will keep track of which characters are where and add images appropriately is a matter for you to refine to your liking. I'm just pointing you to the basic premise -- check whether a character is at a place, then add the image with specific coordinates.
Code: Select all
screen schoolmap:
imagemap:
# hotspots and blah blah here
if condition_fulfilled_here:
add "character one" xpos x ypos y
- peroxidehead
- Newbie
- Posts: 20
- Joined: Thu Mar 13, 2014 7:29 am
- Projects: Cat's Cradle
- Tumblr: nekomacradle
- Contact:
Re: Imagemap Variations?
Thanks! I think I might do this instead of what I had initially planned , though I'll need to study more on imagemaps.philat wrote:Assuming you're using a screen, the imagemap and the added images should be separate.
The above is concept only: how you will keep track of which characters are where and add images appropriately is a matter for you to refine to your liking. I'm just pointing you to the basic premise -- check whether a character is at a place, then add the image with specific coordinates.Code: Select all
screen schoolmap: imagemap: # hotspots and blah blah here if condition_fulfilled_here: add "character one" xpos x ypos y
Who is online
Users browsing this forum: No registered users