Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
chalke
- Newbie
- Posts: 2
- Joined: Mon Aug 03, 2020 10:15 am
-
Contact:
#1
Post
by chalke » Mon Aug 03, 2020 10:33 am
Hello everyone, I am a little embarrassed to start like this but...

I am a complete novice in programming and renpy, after watching some videos I wanted to start making a small game, but I found my first error and I don't know how to solve it, it indicates that the error is in the line of label start, do you know what it is?
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 26: indentation mismatch.
Ren'Py Version: Ren'Py 7.3.5.606
Mon Aug 03 15:52:01 2020
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 oskar = Character("Oskar", color = "#6E0980")
image oskar = "images/pj/Oscar.png"
define clev = Character("Clev")
image clev = "images/pj/Clev.png"
define ran = Character("Ranya")
image ran = "images/pj/Ranya.png"
define IA = character("IA")
image bg_pri = "images/bg/principal.jpg"
# The game starts here.
label start:
scene bg_pri
show oskar
oskar "You've created a new Ren'Py game."
oskar "Once you add a story, pictures, and music, you can release it to the world!"
# This ends the game.
return
-
IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
-
Contact:
#2
Post
by IrinaLazareva » Mon Aug 03, 2020 10:41 am
try
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 oskar = Character("Oskar", color = "#6E0980")
image oskar = "images/pj/Oscar.png"
define clev = Character("Clev")
image clev = "images/pj/Clev.png"
define ran = Character("Ranya")
image ran = "images/pj/Ranya.png"
define IA = character("IA")
image bg_pri = "images/bg/principal.jpg"
# The game starts here.
label start:
scene bg_pri
show oskar
oskar "You've created a new Ren'Py game."
oskar "Once you add a story, pictures, and music, you can release it to the world!"
# This ends the game.
return
https://www.renpy.org/doc/html/language ... and-blocks
-
chalke
- Newbie
- Posts: 2
- Joined: Mon Aug 03, 2020 10:15 am
-
Contact:
#3
Post
by chalke » Mon Aug 03, 2020 10:49 am
IrinaLazareva wrote: ↑Mon Aug 03, 2020 10:41 am
try
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 oskar = Character("Oskar", color = "#6E0980")
image oskar = "images/pj/Oscar.png"
define clev = Character("Clev")
image clev = "images/pj/Clev.png"
define ran = Character("Ranya")
image ran = "images/pj/Ranya.png"
define IA = character("IA")
image bg_pri = "images/bg/principal.jpg"
# The game starts here.
label start:
scene bg_pri
show oskar
oskar "You've created a new Ren'Py game."
oskar "Once you add a story, pictures, and music, you can release it to the world!"
# This ends the game.
return
https://www.renpy.org/doc/html/language ... and-blocks
Yes! that was the problem and another problem that I discovered is that I wrote "character" instead of "Character" thank you very much !!

Users browsing this forum: Bing [Bot], Google [Bot]