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?
How to make an in game character creator?
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.
- prince_lvcio
- Newbie
- Posts: 6
- Joined: Wed Jun 08, 2022 6:17 pm
- Projects: Kizuron
- Contact:
How to make an in game character creator?
here bc im a little bit dumb and need a little bit of help
Re: How to make an in game character creator?
I have seen a lot of examples. Consider looking in Creative Commons, Ren'Py Cookbook, and other sections.prince_lvcio wrote: ↑Mon Jun 13, 2022 7:08 pm like letting the player make their character like a picrew or somethin
Here are some resources:
https://lunalucid.itch.io/free-characte ... -for-renpy
viewtopic.php?f=46&t=21515&hilit=IIcharacter#p273683
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):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?
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!"
Who is online
Users browsing this forum: Google [Bot]