I've create a very simple inventory/journal screen where you can look at the game's world map along with any in-game documentations you might have come across. The player has access to this journal at any point during the game.
Right now there's an imagebutton that hovers just next to the dialogue window at all times. When you click on it, it brings you to the journal. That part seems to work fine. This is the code in script.rpy
Code: Select all
define e = Character('Eileen', color="#c8ffc8")
# The game starts here.
label start:
scene bgsky
show screen journal_icon
e "Hey, do you notice the icon on the right?"
e "I want you to click on it. And then when you're done, return to here!"
e "Try clicking on it."
e "..."
e "Did you click on it..?"
screen journal_icon:
imagebutton auto "house_%s.png" action ShowMenu("journal_open") xpos 1100 ypos 510 focus_mask True
label error:
e "Man, you should not be seeing this..."
label fullmap:
scene map
$ renpy.pause ()
return
label documents:
scene documentation
e "Eventually there will be a bunch of imagebuttons of the documents here..."
return
Code: Select all
##############################################################################
# Journal
#
screen journal_open():
imagemap:
ground "journal"
hover "journal_hover"
hotspot (189, 125, 375, 230) action Jump("fullmap")
hotspot (123,583,70,74) action Return()
hotspot (1107,505,172,66) action ShowMenu("preferences")
hotspot (1107,325,172,63) action ShowMenu("save")
hotspot (1108,422,171,65) action ShowMenu("load")
hotspot (1109, 238, 170, 63) action Jump("documents")
#hotspot (0,0,0,0) action MainMenu()
#hotspot (0,0,0,0) action Help()
hotspot (1108,584,171,67) action Quit()
1. First of all the two actions that lead to labels in the script.rpy, Jump("fullmap") and Jump("documents"), don't seem to be displaying any images.
In the case of label fullmap, this means nothing happens. In the case of label documentations then it means Eileen says her line but it doesn't show the scene.
I imagine this has something to do with this menu screen being in front of the scene..? Or is there some rule about not being able to show images while being in a screen like the one I've made?
2. My second problem is that once I've clicked on load, save or preferences, and have been brought to their respective new screens, I can't seem to go back to my journal screen. The return buttons on each of those screens seem to return me directly to the game, skipping over the journal. I would prefer it return me to the journal, and then from the journal I would then return to the game.
I figure I'm doing something wrong with my jumping/returning of screens and labels but I can't figure out what it is!
Any help would be greatly appreciated.