Question about backgrounds and Choices / Paths

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
User avatar
mugenjohncel
Hentai Poofter
Posts: 2121
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Question about backgrounds and Choices / Paths

#1 Post by mugenjohncel »

- CONTENT NO LONGER RELEVANT -
Last edited by mugenjohncel on Wed Jan 26, 2011 1:57 am, edited 1 time in total.

User avatar
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

#2 Post by mikey »

Congratulations! I'm sure some of the Ren'Py experts will help you (I'm not really one), but a good way is to look at scripts of other people. Scripts you can look at are:
- ren'py demo game
- moonlight walks (inside the extras folder)
- winn freddie
... and so on. 8)

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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:

Re: Question about backgrounds and Choices / Paths

#3 Post by PyTom »

mugenjohncel wrote: :?: Question 1
Let's say I have a BG named BG_1.jpg and BG_2.jpg

I want BG_1.jpg to be displayed for about 4 seconds and then BG_2.jpg then start the game without using animation.
I don't understand what you mean by this. Are you talking about starting the game without having to make the user go through a menu, or something that happens before the menu, or something that happens after the menu?

You'll definitely want a pause as part of it, something like:

Code: Select all

scene black

with None
show bg bg_1
with dissolve

$renpy.pause(4)

with None
show bg bg_2
with dissolve
But it's hard for me to know exactly where you want this.
The player was asked a question as to which door shall she opens and then a menu will pop up that will probably look like this

Door No.1
Door No.2
Door No.3


Then chooses Door No.3 and a text will pop up saying "None" then jumps back to the Menu but this time Door No.3 will no longer be accessible in the menu and after choosing all doors a new question will pop up (One Question) and then the story moves forward.

Code: Select all

$ seen_1 = False
$ seen_2 = False
$ seen_3 = False

menu timewaster:
    "Door 1" if not seen_1:
        $ seen_1 = True
        "None"
        jump timewaster
    "Door 2" if not seen_2:
        $ seen_2 = True
        "None"
        jump timewaster
    "Door 3" if not seen_3:
        $ seen_3 = True
        "None"
        jump timewaster
     "Secret Door" if seen_1 and seen_2 and seen_3:
         "You discover a secret door!"

"And now you go on to the rest of the game."
Just to correct mikey a bit, the script for MW is in scripts/, not in extras/.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
mugenjohncel
Hentai Poofter
Posts: 2121
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Thanks!

#4 Post by mugenjohncel »

- CONTENT NO LONGER RELEVANT -

Post Reply

Who is online

Users browsing this forum: No registered users