Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/name_input.rpy", line 26: expected a keyword argument, colon, or end of line.
input default "kyoko" pos(400,245) changed name_func length = 5
^
Ren'Py Version: Ren'Py 6.99.11.1749
Code: Select all
##for custom cursor caret
image my_caret:
"caret.png"
linear 1.0 alpha 1.0
linear 1.0 alpha 0.0
repeat
##screen for input
screen text_input_screen():
default screenvar = False
imagemap:
ground "background.png"
idle "idle.png"
hover "hover.png"
selected_idle "hover.png"
hotspot (133, 211, 579, 182) action SetScreenVariable("screenvar",True)
hotspot (619, 291, 83, 24) action [Hide("text_input_screen"),Jump("complete")]
if screenvar == True:
input default "kyoko" pos(400,245) changed name_func length = 5
Code: Select all
init:
default name = "Kyoko"
init python:
def name_func(newstring):
store.name = newstring
style.input.caret = "my_caret"
style.input.size = 35
style.input.color = "#FFF"
define d = Character('')
# The game starts here.
label start:
show screen text_input_screen
d "This input box will only work when you click on it."
d "Check the checkbox button when your done!."
jump start
label complete:
d "Your name is [name]!"