Manually define character's gender for proper place holder?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Manually define character's gender for proper place holder?

#1 Post by Steffenator »

Hey, gang.
Is there something I can put in the character definition block to specify its gender?

Reason being... I code stuff out way before I have graphics to fill in the displayables, and it would be really handy if I saw the 'boy' sprite for male characters. Heck, it would be handy if I could just assign a default dummy sprite to each character, then it would be no problemo to code before the graphics are made.
... work flow kinda thing, you know.

Thanks.
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


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: Manually define character's gender for proper place hold

#2 Post by PyTom »

Just do:

Code: Select all

image eileen = Placeholder("girl")
image tom = Placeholder("boy")
etc. Ren'Py should try to guess the gender from the name, if it's not available.
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
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Re: Manually define character's gender for proper place hold

#3 Post by Steffenator »

Thanks, man!
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


Post Reply

Who is online

Users browsing this forum: Bing [Bot]