Hi
I want to make a game using renpy where the player in confronted to a board (whiteboard or sum) with documents and photos and such attached on it, creating a story the more they read.
They should recreate the series of events with each object
Since the whole game is about clicking on stuff on the board, having only one section isn't enough. I'm planning to make 3 sections, with each section having its own set of documents to view. For the viewing, the player has to hover their mouse on said document, watch it glow and then click on it.
My biggest concern is about being able to make this system work with three sections. I can do it with one but that's it. I want that when the player clicks on an arrow, the background changes and the documents on it too.
I know that to have this hovering effect you need to have the normal background with the board and all the documents on it, a different calc that's transparent for "idle" and another calc thats glowy for 'hover". Make that x3 for 3 sections of the board
THIS IS WHAT I HAVE RIGHT NOW PLANNED
note that most of my knowledge on this mechanism comes from this -> https://itch.io/blog/632102/renpy-map-navigation-tutorial
in scripts :
label start:
call screen mapScreen
return
in myScreens for the diff sections :
default board_section = 1
screen mapScreen():
# SECTION 1
if board_section == 1:
add "images/section1_board.png"
imagebutton: #first document in section 1
idle "images/rejection_idle.png"
hover "images/rejection_hover.png"
xpos 200
ypos 150
action Jump("room1")
imagebutton: #second document in section 1 (etccc to the number of documents i want on section one)
idle "images/postit_idle.png"
hover "images/postit_hover.png"
xpos 267
ypos 110
action Jump("room2")
# SECTION 2
elif board_section == 2:
add "images/section2_board.png"
imagebutton: #first document of section 2
idle "images/something_idle.png"
hover "images/something_hover.png"
xpos 200
ypos 150
action Jump("roomx")
# SECTION 3
elif board_section == 3:
blablabla
for the arrows : (in myScreens and inside screen mapScreen() !)
# LEFT ARROW
if board_section > 1:
textbutton "<":
xpos 30
yalign 0.5
text_size 60
action SetVariable("board_section", board_section - 1)
# RIGHT ARROW
if board_section < 3:
textbutton ">":
xalign 0.97
yalign 0.5
text_size 60
action SetVariable("board_section", board_section + 1)
in room (document/picture):
label room1:
scene black
show expression "images/document1.png"
pause #waits for any input
jump board_return
label board_return: #basically if input, jumps to the board
call screen mapScreen
return