I was wondering,How do you go about making a branching,multi-pathed game on ren'py?
I mean its TOTALLY confusing
Also,Are there any codes for this? Any specific way of going about doing this?
Please explain it as simply as possible
Thank you!
Code: Select all
label start:
a "Hey let's get married!"
menu:
"Okay!":
jump married
"No!":
jump single
label married:
a "We got married!"
"Good Ending."
return
label single:
a "We didn't get married! A shame!"
"Bad ending"
return
I've just read up on both things and it actually seems pretty simple lol (^o^)/ Thank you!Camille wrote:You'll want to read about menus, labels, and jumps as well as remembering user choices. That's about all you need to know in order to make a branching, multi-path game.
Thank you so much for posting an examplecloudyssky wrote:Having a game end in multiple ways is actually pretty easy. Yes, there's coding for ending a game, but you have to do all the work!
Here's a quick example:
What creates an ending is "return". That function ends the game. A game can have dozens and dozens of different endings. All you need is "return" where you want the game to end.Code: Select all
label start: a "Hey let's get married!" menu: "Okay!": jump married "No!": jump single label married: a "We got married!" "Good Ending." return label single: a "We didn't get married! A shame!" "Bad ending" return
Code: Select all
$ girl1_points = 0Code: Select all
"girl1" "What to do...?"
menu:
"Do nothing":
girl1_points = +1Code: Select all
if girl1_points = x:
jump girl1endPoint systemgaoldart wrote:You could use a point system. With a variable like:
then girl1 has no points but if you add something like...Code: Select all
$ girl1_points = 0
(Someone correct me if the code is wrong) But this means that girl1 now has +1 pointCode: Select all
"girl1" "What to do...?" menu: "Do nothing": girl1_points = +1
You could later put something on the lines of:
If anybody can correct me please do so... but that's the basic ideaCode: Select all
if girl1_points = x: jump girl1end
Code: Select all
menu:
"Do nothing":
$ girl1_points += 1
jump nextsceneCode: Select all
if girl1_points >= 10:
jump goodend
else:
jump bad endUsers browsing this forum: No registered users