Here's my code for the affection points (the other details are cut from this)
Code: Select all
init:
$ tn_love = 0
label start:
$ tn_love = 0Next, for the game menu buttons and to show the affection points of guy1:
Code: Select all
init python:
def button_game_menu():
if show_button_game_menu:
ccinc = renpy.curried_call_in_new_context
ui.hbox(xpos=0.985, ypos=0.81, xanchor='right', yanchor='bottom')
ui.textbutton("Skip", clicked=toggle_skipping, xminimum=80)
ui.textbutton("Load", clicked=ccinc("_game_menu_load"), xminimum=80)
ui.textbutton("Stat", clicked=ccinc("stat"), xminimum=80)
ui.close()
config.window_overlay_functions.append(button_game_menu)
def tn_love():
if tn_affect_show:
ui.vbox(xpos=1, ypos=0)
ui.text("Guy1: %s" %tn_love)
ui.frame()
config.overlay_functions.append(tn_love)Main Problem
Okay, the main problem here is that whenever I try to show the affection points of Guy1, in other words, when I include
Code: Select all
$ tn_affect_show = TrueBefore $ tn_affect_show

After:

For some reason, the frame, which should have been around Guy1= 0, is below that, and the game buttons moved to the top. I'm really at a loss. I don't know how to deal with this. X(
And then right after that, when I click for the next dialog to show, an error occurs.
Code: Select all
I'm sorry, but an uncaught exception occurred.
Exception: Widget <renpy.display.layout.Window object at 0x036DDD90> expects a child.
While running game code:
- script at line 392 of F:\EJ\Programs\Renpy\Otomegokoro/game/script.rpy