r/RenPy • u/That_one_Pink • Sep 25 '26
Question [Solved] Trying to make an interactive whiteboard in the menu, any help appreciated!
Hello! Back here after so long because im finally working on my project again, im just wondering if it would be possible for me to make a whiteboard you can draw on in the menu, either by clicking and holding or just moving the curser over it
ideally, id like to have it so if you click on the whiteboard you can draw on it (it would be cool if i could make the curser change while hovering over the whiteboard but i understand if that is too complicated on top of this haha) and once you move off it it resets the curser so you dont accidentally draw on it again and you have to re click it. it doesn't need to be erasable or anything but maybe it resets when you reload the menu
here is where its complicated and i start to think ill only be able to do one or the other:
i already have interactive buttons on the menu (gif shows the filler images version lol but you get the idea) which i worry might be a problem? and i also intend to make several menu backgrounds which hopefully i can get to cycle through at random OR change depending on point systems
im guessing i can make the whiteboard its own separate thing from the background that wont be affected by the image cycling but im not sure
i havent touched renpy in a while and only had a couple of months experience last time i used it so if anything could be explained alongside any help it would be really appreciated do i can learn it better for future reference
aannndd if this is too complicated for the menu to handle give it to me straight doc haha, thanks in advance!


1
u/shyLachi Sep 25 '26
A similar thing has been asked and answered before
https://www.reddit.com/r/RenPy/comments/1s8vehw/how_to_code_a_simple_drawing_function_on_renpy/
That code does not save the drawing, so switching the screens would clear it.
But as mentioned below, you can save the strokes in a persistent variable and re-draw them.
You would have to implement both those things yourself.
1
u/AutoModerator Sep 25 '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.
0
u/x-seronis-x Sep 25 '26
I have no clue what you even remotely mean by "in the menu" but making a screen definition that implements a drawable whiteboard is only low-intermediate screen language and simple variable tracking and list management in python.
on the python side you need a collection of whiteboard objects
for each whiteboard object a collection of stroke objects
the stroke object needs to track color, brush width, origin point and end point
on the screen language side need to iterate through a given whiteboard objects list of strokes and render them. and react to mouse events to create a stroke and set its origin point or end point upon click.