Hello,
I've only begun playing around with renpy exploring what is possible with it and have come to my first obsticle.
I want to place the main menu in the center of the window instead of on the right as it appears by default.
How do I do this?
I tried messing around with this part in options.py
Code: Select all
## This lets you change the placement of the main menu.
## The way placement works is that we find an anchor point
## inside a displayable, and a position (pos) point on the
## screen. We then place the displayable so the two points are
## at the same place.
## An anchor/pos can be given as an integer or a floating point
## number. If an integer, the number is interpreted as a number
## of pixels from the upper-left corner. If a floating point,
## the number is interpreted as a fraction of the size of the
## displayable or screen.
# style.mm_menu_frame.xpos = 0.5
# style.mm_menu_frame.xanchor = 0.5
# style.mm_menu_frame.ypos = 0.75
# style.mm_menu_frame.yanchor = 0.5Code: Select all
I'm sorry, but an exception occured while executing your Ren'Py
script.
SyntaxError: invalid syntax (line 133)
While compiling python block starting at line 11 of C:\programs\renpy-6.3.3\nda/game/options.rpy.
-- Full Traceback ------------------------------------------------------------
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\bootstrap.py", line 209, in bootstrap
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\main.py", line 186, in main
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\script.py", line 444, in load_script
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\script.py", line 167, in __init__
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\script.py", line 344, in load_file
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\script.py", line 397, in update_bytecode
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\python.py", line 206, in py_compile_exec_bytecode
File "C:\Documents and Settings\mini\Desktop\renpy-6.3.3\renpy\python.py", line 188, in py_compile
File "compiler\transformer.pyo", line 50, in parse
File "compiler\transformer.pyo", line 120, in parsesuite
SyntaxError: invalid syntax (line 133)
While compiling python block starting at line 11 of C:\programs\renpy-6.3.3\nda/game/options.rpy.
Ren'Py Version: Ren'Py 6.3.3a

