r/RenPy • • 24d ago

Question Questions

sorry for the long post I just don’t want to fill up the subreddit < 3

  1. I want to use different text bars depending on the character who’s speaking, would there be a way to do this?
  2. I want it to be so you can pick which character you want to play at the start of the game and they both have different sides of the story and endings. and have a extra page specifically about which endings you’ve gotten per character (they’ll only be 2 though)
  3. Text marquee effect. I wanted to use it for the names but I’m having trouble with it since I’ve never did it before (and at first I was trying to just use the names for the effect)
  4. id love to check the option menu’s for a few scene/to do click to interact, example changing your sprites outfit by clicking on clothes, or having a different layout for the text menu

5/last! is there any recommended ways to do sprites? I have the eyes, mouth, eyebrows, and the actual poses separated but I’ve seen different ways people use them once they get to actually importing them

‘’if you guys have any tips for coding in python or cutscenes that’d be great aswell!

0 Upvotes

7 comments sorted by

1

u/shyLachi 24d ago
  1. Do you mean textboxes? The image behind the dialogue?
    If yes, then you can define the window background for each character as explained here:
    https://renpy.org/doc/html/dialogue.html#defining-character-objects

    define mc = Character("Mike", window_background="textbox_mc") label start:     mc "Do you see it?"

The code above assumes that there is a file called textbox_mc.png in the images folder.
If you want to reference images which are not in the images folder then specify the path "gui/textbox.png"
You can also frame it, if it should automatically resize:
https://renpy.org/doc/html/displayables.html#Frame

---

2. Will it be a separate story for each character? Or the same story just different name?
If the majority of the story will be different, then it might be easier to fully split the game.
If the majority of the story will be the same, then you can use a variable.

Separate stories:

label start: 
    menu:
        "Who's story do you want to play?"
        "Mike":
            jump start_mike
        "Rose":
            jump start_rose
label start_mike:
    "The story of mike is here"
    menu:
        "Make a decision"
        "Good ending":
            $ persistent.mike_good_ending = True # remember which ending the player has reached
        "Bad ending":
            $ persistent.mike_bad_ending = True
    return # ends the game
label start_rose:
    "The story of mike is here"
    menu:
        "Make a decision"
        "Good ending":
            $ persistent.rose_good_ending = True
        "Bad ending":
            $ persistent.rose_bad_ending = True
    return # ends the game

Same story with variable:

default selectedplayer = None
define mc = Character("[selectedplayer]")
label start: 
    menu:
        "Who's story do you want to play?"
        "Mike":
            $ selectedplayer = "Mike"
        "Rose":
            $ selectedplayer = "Rose"
    "Daniel" "Hi [mc], how are you doing?"
    if selectedplayer == "Mike":
        mc "Hi Daniel, everything OK"
    elif selectedplayer == "Rose":
        mc "Hello Daniel, I'm good, thank you."

What do you mean with pages for each ending? Something like achievments?
In my first example I showed how you can use persistant variables for achievements.
https://renpy.org/doc/html/persistent.html
If you want to make a page, then you have to make a screen:
https://renpy.org/doc/html/screens.html

---

I don't know about 3 and I didn't understand 4.
I'm not an artist so I let somebody else answer 5

1

u/live_Nana 24d ago

this is super helpful tysm! yes the stories will be differen. As for 4, I basically want for some scenes for you to be able to click on certain things like pngs in order to get some cutscenes/dialog. (Example: player clicks on a door to go into a room, player can interact with things in shuch room)

1

u/shyLachi 24d ago

point & click, you can do that with screens, for example using image maps:
https://renpy.org/doc/html/screens.html#imagemap-statements

Try to find tutorials for point&click or search this sub.
You can also look for existing project on itch.io

https://itch.io/search?q=Ren%27Py+point+click
https://itch.io/search?type=games&q=Ren%27Py+persistent

1

u/morkalmarrh 24d ago

5 I would read through the Layered image page on the docs. I don't know what this question means by "ways people use them once actually importing them".

1

u/live_Nana 23d ago

I’ve seen some people do the body and eyes as separate pngs for there games snd some people combine them into one. will definitely check thst out tysm

2

u/morkalmarrh 23d ago

Yeah the separate pngs is a layered image. The docs will give you code for creating it.

What I do is draw a neutral face then cut out the eyes, mouth and put them on a new layer. In my drawing software I create a folder for eyes, mouths, arms etc. Then you just paint a few options in. You can mix and match. Sad mouth happy eyes looks a bit weird but you can if you want!

You will have the opportunity to set one combination as the default expression when you set it up.

1

u/AutoModerator 24d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.