return is indented 4 or 8 spaces?PyTom wrote:If you run the "return" statement outside of a call, then it will return you to the main menu, which is a reasonable way of ending the game.
You probably want to use a renpy.imagemap to let the user pick a character... see the reference manual and the UI portion of the demo to see how that works.
Question on new RenPY
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
- PyTom
- Ren'Py Creator
- Posts: 16088
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
It's indented to the same level as the surrounding code. So you would write something like:
Code: Select all
label good_ending:
"And we lived happily ever after."
l "And made many babies!"
".:. Good ending."
return
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
My god.. I've been hours here correcting errors here and they are endless!!!
But ere's one thatkeeps on popping and I can't uderstand it
What that means?
But ere's one thatkeeps on popping and I can't uderstand it
Code: Select all
ParseError: On line 49 of C:\Documents and Settings\Karla\Mis documentos\renpy-5.6.4-full\renpy-5.6.4\Quiz/game/script.rpy: say statement does not expect a block.
t "So..which student will take the test first?"
^
While parsing C:\Documents and Settings\Karla\Mis documentos\renpy-5.6.4-full\renpy-5.6.4\Quiz/game/script.rpy.
- PyTom
- Ren'Py Creator
- Posts: 16088
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
This means that the next line (the one following the given one) is improperly indented.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- PyTom
- Ren'Py Creator
- Posts: 16088
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Done.
The worst error message Ren'Py produces is one in inherits from python, one that is caused when Python code is utterly wrong. It is:
SyntaxError: invalid syntax
I've heard it described as "simultaneously overly terse and redundant". Unfortunately, there's not much I can do about it.
The worst error message Ren'Py produces is one in inherits from python, one that is caused when Python code is utterly wrong. It is:
SyntaxError: invalid syntax
I've heard it described as "simultaneously overly terse and redundant". Unfortunately, there's not much I can do about it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Ok..I don't understand something, it's telling me that the line following the line 147 isn't properly indented, can anyone tell me where it should be intended -___-
There appears lines from 144-149. It's a menu and the first option
Code: Select all
menu:
"Galaxies are formed of...?"
"Celestial bodies":
$ score += 1
m "Very good! you got it right!"
jump question6
Hii!! Thanks to all you guys, I finished already one game! I even added credits but I need to know a little detail: how do I show the score in the screen during the game so the player can see actually how much points he/she has instead of knowing at the end?
and I had to start another one (the teacher seems not to know how log it takes to program) that its a pseudo-planetarium, the game will explain you about the solar system and stuff but..How do I make the interface or style of the game fancier (for the planetarium)??
and I had to start another one (the teacher seems not to know how log it takes to program) that its a pseudo-planetarium, the game will explain you about the solar system and stuff but..How do I make the interface or style of the game fancier (for the planetarium)??
-
- Eileen-Class Veteran
- Posts: 1153
- Joined: Mon Jul 07, 2003 4:57 pm
- Completed: Elven Relations, Cloud Fairy, When I Rule The World
- Tumblr: alextfish
- Skype: alextfish
- Location: Cambridge, UK
- Contact:
You can do this with the renpy.watch function. For example:MoonKarla wrote:Hii!! Thanks to all you guys, I finished already one game! I even added credits but I need to know a little detail: how do I show the score in the screen during the game so the player can see actually how much points he/she has instead of knowing at the end?
Code: Select all
init:
$ renpy.watch("PlayerPoints")
Code: Select all
init:
$ renpy.watch("'SCORE: ' + `PlayerPoints` + ' points; ' + `PlayerLives` + ' lives left!'")
I released 3 VNs, many moons ago: Elven Relations (IntRenAiMo 2007), When I Rule The World (NaNoRenO 2005), and Cloud Fairy (the Cute Light & Fluffy Project, 2009).
More recently I designed the board game Steam Works (published in 2015), available from a local gaming store near you!
More recently I designed the board game Steam Works (published in 2015), available from a local gaming store near you!
Wow, it seems like there might actually be as many completed Ren'Py games in this month alone as in the entire year 2005! (8 going on 9)
But it might be simpler to just have a new character declaration (call it 'PlanetariumNarration' or something) and use the default subtitle SFfont (see the Ren'Py demo tutorial for the specific lines of code). That way, with the removal of the textbox, you'll have the whole screen to display the galaxies.
My first suggestion would be to define a new font with high-tech greenish letters and a dark blackish background textbox.MoonKarla wrote: and I had to start another one (the teacher seems not to know how log it takes to program) that its a pseudo-planetarium, the game will explain you about the solar system and stuff but..How do I make the interface or style of the game fancier (for the planetarium)??
But it might be simpler to just have a new character declaration (call it 'PlanetariumNarration' or something) and use the default subtitle SFfont (see the Ren'Py demo tutorial for the specific lines of code). That way, with the removal of the textbox, you'll have the whole screen to display the galaxies.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot]