How to make an in game character creator?

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
prince_lvcio
Newbie
Posts: 6
Joined: Wed Jun 08, 2022 6:17 pm
Projects: Kizuron
Contact:

How to make an in game character creator?

#1 Post by prince_lvcio »

like letting the player make their character like a picrew or somethin
or, if that's too complicated, how to just put up a menu of characters and let the player choose between them? :D
here bc im a little bit dumb and need a little bit of help

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: How to make an in game character creator?

#2 Post by _ticlock_ »

prince_lvcio wrote: Mon Jun 13, 2022 7:08 pm like letting the player make their character like a picrew or somethin
I have seen a lot of examples. Consider looking in Creative Commons, Ren'Py Cookbook, and other sections.

Here are some resources:
https://lunalucid.itch.io/free-characte ... -for-renpy
viewtopic.php?f=46&t=21515&hilit=IIcharacter#p273683
prince_lvcio wrote: Mon Jun 13, 2022 7:08 pm or, if that's too complicated, how to just put up a menu of characters and let the player choose between them? :D
Here is a simplified example with screen language (you can also find some other examples of screens with buttons in Ren'Py Cookbook or Ren'Py Questions and Announcements):

Code: Select all

screen select_character():
    default selected_character = None
    hbox:
        spacing 10
        frame:
            background ("#aaffff" if selected_character == "boy_00.png" else "#ffffff")
            imagebutton:
                idle "boy_00.png"
                action SetScreenVariable('selected_character', "boy_00.png")
        frame:
            background ("#aaffff" if selected_character == "boy_01.png" else "#ffffff")
            imagebutton:
                idle "boy_01.png"
                action SetScreenVariable('selected_character', "boy_01.png")
        frame:
            background ("#aaffff" if selected_character == "boy_02.png" else "#ffffff")
            imagebutton:
                idle "boy_02.png"
                action SetScreenVariable('selected_character', "boy_02.png")
    if selected_character != None:
        textbutton _("Select"):
            xalign 1.0 yalign 1.0
            action Return(selected_character)

default mc_image_name = 'boy_00.png'
image mc_image = "[mc_image_name]"

label start:
    call screen select_character
    $ mc_image_name = _return
    show mc_image at left
    "Character is selected!"

Post Reply

Who is online

Users browsing this forum: No registered users