I am doing this password puzzle, and I want the textbox that appear when you put in the password to look different than the standard textbox.
This is my working code:
Yet, as you can see, the "style" is not activated. Everytime I try to add it, I get a crash. When I tried what ChatGPT told me, to add it like so: guess = renpy.input("Tivoli is a", length=32, style=my_input_box)
Ren'Py says it does not recognise the style. Any help appreciated ^^
This is my working code:
Code:
style my_input_box:
xpadding 16
ypadding 16
background Frame("my_input_box.png", 16, 16)
focus_mask "my_input_box_focus_mask.png"
python:
password = "raccoon"
guess = renpy.input("Tivoli is a", length=32)
guess = guess.strip()
if guess == password:
jump v06_puzzlecleared
else:
jump v06_puzzlelost
Ren'Py says it does not recognise the style. Any help appreciated ^^