I started out making my game with an old version of Renpy with a different way of making screens and imagemaps. I decided to move everything over to stay updated (but mostly because I wanted a music room), and now I'm running into some problems getting used to the new ways of doing things...
First of all, my main menu has both an imagemap and snowblossom. With the new "Renpy screens" using the preset buttons, it obviously worked fine. But when I tried to use an imagemap like so:
Code: Select all
hotspot (652, 318, 787, 365)action Start()
hotspot (652, 368, 787, 421) action ShowMenu('load')
hotspot (652, 426, 799, 514) action ShowMenu('preferences')
hotspot (636, 472, 540, 353) action Help()
hotspot (652, 516, 789, 553) action ShowMenu("music_room")
hotspot (672, 559, 770, 594) action Quit(confirm=False)
I then tried to make parts of my imagemap transparent, but I couldn't get that to work either. It just showed the ground-level buttons with no menu picture in the background.
Finally, I checked this thread: http://lemmasoft.renai.us/forums/viewto ... f=4&t=4677 And did this:
Code: Select all
mm_root = Fixed(
Image("titlescreen.png"),
SnowBlossom("snow3.png", count=70, xspeed=(15, 35), yspeed=(55, 75), start=10)), layout.imagemap_main_menu("menunull.png", "menuhover.png", [
(652, 318, 787, 365, "Start Game"),
(652, 368, 787, 421, "Load Game"),
(660, 423, 772, 466, "Preferences"),
(643, 469, 798, 512, "Help"),
(652, 516, 789, 553, "music_room"),
(672, 559, 770, 594, "Quit"),
])
If someone could tell me how to get snowblossoms to work, or how to get my music room imagemap function to work, that'd be swell.
Also, using this code above, no sound effect plays upon clicking the working buttons on the imagemap. If I continue to use this code, how do I give it a "clicking" sound?
Any help would be greatly appreciated. This is driving me crazy.