Code: Select all
# The script of the game goes in this file.
# Declare characters used by this game. The color argument colorizes the
# name of the character.
define m = Character("May")
# The game starts here.
label start:
# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
scene bg room
# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
image may happy = "mayhappy.png"
show image mayhappy.png
# These display lines of dialogue.
m "You've created a new Ren'Py game."
m "Once you add a story, pictures, and music, you can release it to the world!"
# This ends the game.
return
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 25, in script
show image mayhappy.png
File "game/script.rpy", line 25, in <module>
show image mayhappy.png
NameError: name 'mayhappy' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 25, in script
show image mayhappy.png
File "C:\Users\LeiLoni\Downloads\renpy-6.99.14.3-sdk\renpy\ast.py", line 1131, in execute
show_imspec(self.imspec, atl=getattr(self, "atl", None))
File "C:\Users\LeiLoni\Downloads\renpy-6.99.14.3-sdk\renpy\ast.py", line 1087, in show_imspec
expression = renpy.python.py_eval(expression)
File "C:\Users\LeiLoni\Downloads\renpy-6.99.14.3-sdk\renpy\python.py", line 1919, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\LeiLoni\Downloads\renpy-6.99.14.3-sdk\renpy\python.py", line 1912, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 25, in <module>
show image mayhappy.png
NameError: name 'mayhappy' is not defined
Windows-8-6.2.9200
Ren'Py 6.99.14.3.3347
Life's Mysteries 1.0
Thu Apr 26 11:15:19 2018