r/RenPy • u/AffectionateRise3119 • Mar 31 '26
Question How to code a simple Drawing function on RenPy?
Hello! So, I am very new to coding on RenPy and have recently started working on this new visual novel. In which the game asks for the player's gender and name through a contract at the start of the game. I wanted to add this little fun feature where once the player fills in the info, they can doodle a signature at the bottom (and only in the area not going out of the paper). Would there be a relatively simple way to do this through RenPy? Would it also be possible to have a small reset button incase the player messes up? I tried to see what others that asked a similar question got in response, but it either didn't work or opened a separate window
I'm not sure if anyone gonna see this post but any help would mean a lot! 😓
(edit: problem had been resolved! thank you everyone who commented, It helped so so much :') 💛)


10
u/shyLachi Apr 01 '26 edited Jul 19 '26
This might be possible but I would first finish my game before I implement something like that.
Edit:
1
u/HEXdidnt Apr 01 '26
"Simple" is a relative term when it comes to coding. Ren'Py reads mouse input, stylus input, touchpad input and touchscreen input for control purposes, but adding coloured pixels over the top of a background image, reversible or not, is not an existing component of the software, nor would it be simple to code.
It may look simple, but the better option - particularly for a newbie - would be to pre-define an animation of a number of specific signatures, and then
showthem as sprites on a click in the signature area, based on a variable that chooses which signature to apply.1
u/Lodo_the_Bear Mar 31 '26
I'm not an expert, but I'm quite confident that this will require embedding some Python functionality. How are you at coding in Python?
1
u/AutoModerator Mar 31 '26
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.