Code: Select all
You can place the script of your game in this file.
# Declare images below this line, using the image statement.
image bed = "bedroomday.png"
image class = "classroomday.png"
image hall = "hallwayday.png"
image stairs = "hstairsday.png"
image room = "roomday.png"
image school = "schoolday.png"
image nurse = "nurseday.png"
image up = "GreenButton_UpArrow.svg.png"
image down = "GreenButton_DownArrow.svg.png"
image left = "GreenButton_LeftArrow.svg.png"
image right = "GreenButton_RightArrow.svg.png"
# Declare characters used by this game.
init:
$ esubtitle = Character(None,
what_size=28,
what_outlines=[(3, "#0008", 2, 2), (3, "#000", 0, 0)],
what_layout="subtitle",
what_xalign=0.5,
what_text_align=0.5,
window_background=None,
window_yminimum=0,
window_xfill=False,
window_xalign=0.5)
screen NRJ:
text "Energy 10/10"
screen hp:
text "Energy 9/10"
screen scan:
textbutton "Scan" action Jump("read")
screen lets_go:
imagebutton auto "GreenButton_UpArrow.svg.png" action Jump("up") (693, 479, 59, 32)
imagebutton auto "GreenButton_DownArrow.svg.png" action Jump("down") (696, 563, 59, 32)
imagebutton auto "GreenButton_LeftArrow.svg.png" action Jump("left") (627, 518, 59, 32)
imagebutton auto "GreenButton_RightArrow.svg.png" action Jump("right") (726, 513, 59, 32)
# The game starts here.
label start:
scene school
show screen NRJ
esubtitle "Welcome to the Anarchy Institute."
esubtitle "Go ahead inside..."
show screen lets_go
label up:
scene room
show screen hp
show screen scan
esubtitle "I wonder what this room is for."
label read:
esubtitle "This is it?"
label down:
scene stairs
esubtitle "I wonder where these stairs go..."
esubtitle "Hmmm.."
label left:
scene nurse
esubtitle "The nurse.."
label right:
scene hall
esubtitle "The classes must be down this hall."
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 50, in script
esubtitle "I wonder what this room is for."
File "game/script.rpy", line 35, in python
imagebutton auto "GreenButton_UpArrow.svg.png" action Jump("up") (693, 479, 59, 32)
TypeError: __call__() takes exactly 1 argument (5 given)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "F:\renpy-6.13.7\renpy\execution.py", line 261, in run
File "F:\renpy-6.13.7\renpy\ast.py", line 396, in execute
File "F:\renpy-6.13.7\renpy\exports.py", line 696, in say
File "F:\renpy-6.13.7\renpy\character.py", line 770, in __call__
File "F:\renpy-6.13.7\renpy\character.py", line 664, in do_display
File "F:\renpy-6.13.7\renpy\character.py", line 471, in display_say
File "F:\renpy-6.13.7\renpy\ui.py", line 237, in interact
File "F:\renpy-6.13.7\renpy\display\core.py", line 1798, in interact
File "F:\renpy-6.13.7\renpy\display\core.py", line 2036, in interact_core
File "F:\renpy-6.13.7\renpy\display\core.py", line 246, in visit_all
File "F:\renpy-6.13.7\renpy\display\core.py", line 246, in visit_all
File "F:\renpy-6.13.7\renpy\display\core.py", line 246, in visit_all
File "F:\renpy-6.13.7\renpy\display\core.py", line 248, in visit_all
File "F:\renpy-6.13.7\renpy\display\core.py", line 2036, in <lambda>
File "F:\renpy-6.13.7\renpy\display\screen.py", line 152, in per_interact
File "F:\renpy-6.13.7\renpy\display\screen.py", line 244, in update
File "F:\renpy-6.13.7\renpy\screenlang.py", line 1166, in __call__
File "F:\renpy-6.13.7\renpy\python.py", line 978, in py_exec_bytecode
File "game/script.rpy", line 35, in <module>
TypeError: __call__() takes exactly 1 argument (5 given)
Windows-Vista-6.0.6000
Ren'Py 6.13.7.1646
A Ren'Py Game 0.0
Thanks