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.
Hello, so I wanted to eventually make a map screen that uses edge scroll and image buttons. You put your mouse to the edge and as it scrolls you can see the various places you can click on. I was just testing out the code, and I can't figure out why it wouldn't work. Here's what I had:
The edge scroll works fine until I put the vbox in. If the vbox code is there, it won't scroll. If just the text button code is there, I receive an error like viewport doesn't accept this action or something. Is what I'm trying to do not possible?
So, the issue here is that when you put two things inside a viewport, Ren'Py creates a Fixed to put them in. That Fixed is the size of the screen, which is too small to contain everything inside the viewport.
I'd suggest that what you want is the child_size argument to viewport: