Now for this sections of point-and-click gameplay; after a bunch of research i decided that the best way to implement them would be with imagebuttons, as i want every item that can be picked up to be "light up" when the player hovers the mouse over it, in order for them to know that is an interactive item. Imagemaps i believe, don't allow me to set up a "lighting up" of diferent hotspots as the player hovers the mouse over them but rader will change the image as the player hovers over each hotspot.
Anyway, I tried to implement imagebuttons on to the script by using a screen with a back ground and then adding over it the items that should be found but when the moment for the game to display this screen comes, it just skips it and goes straight into the next label which was supposed to be a label that went back on the screen so as to keep the player there until they were satisfied with looking around. I think it all boils down to the fact that I haven't gotten the hang of imagebuttons and screens. But i have tried looking around and there is not much documentation about doing this kind of screens with imagebuttons for ingame porpuses, so please if anyone can tell me where I went wrong and how I should go about doing this I would be grateful.
Code: Select all
window show narrator "Hover your mouse over the scene to find objects that might hold clues or that might be of interest to you... Make sure to alway be thorough!" nvl clear window hide show screen hroom1 $ renpy.pause (1.0, hard = True) screen hroom1: modal True add "images/room_1_idle.jpg" imagebutton idle "images/book_idle.png" hover "images/room_1_hover_book.png" xpos 210 ypos 526 focus_mask True action Jump("ntbk") imagebutton idle "images/exit_arrow.png" hover "images/exit_arrow_hover.png" xpos 980 ypos 520 focus_mask True action Jump("back1") $ renpy.pause (1.0, hard = True) label ntbk: hide screen hroom1 jn"You have found a notebook with a pen. In the first page the word 'WRITE' stands out." show screen hroom1 label back1: hide screen hroom1 jn "Well, I guess I'll head back and search the other parts of the house, there might be more to see." jump inspecthouse