Limiting the amount of images inside a hbox?

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
tcassat
Regular
Posts: 33
Joined: Tue Oct 03, 2017 7:32 pm
Contact:

Limiting the amount of images inside a hbox?

#1 Post by tcassat »

Hello guys!

I'm using a screen to plot icons of the characters in the locations they are on the map, as the image below shows:

Image


I want to force the icons to be plotted on the bottom line after they arrive at the end of the hbox. In the case of text characters, I just need to write "xmaximun = X", but this has no effect in the case of images. They continue to be plotted horizontally even though the bounds of hbox have already been reached.

Could someone point me the solution to this problem?

Thank you!

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Limiting the amount of images inside a hbox?

#2 Post by philat »

If I'm understanding you correctly, you probably want vpgrid.

tcassat
Regular
Posts: 33
Joined: Tue Oct 03, 2017 7:32 pm
Contact:

Re: Limiting the amount of images inside a hbox?

#3 Post by tcassat »

Thanks Philat! It was just what I wanted:

Image

Post Reply

Who is online

Users browsing this forum: No registered users