Problem with Sprite and Textbox

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
riverbluesbear
Regular
Posts: 69
Joined: Sun Jan 31, 2016 3:53 am
Projects: RTANMUSSB!
Contact:

Problem with Sprite and Textbox

#1 Post by riverbluesbear » Thu Feb 04, 2016 6:30 pm

So, I have my main character's sprites all done and ready to go, but I'm not sure how to have their face/emotions in the corner next to the textbox like everyone seems to be able to do. The textbox just covers them up and it looks awkward and I'm not sure how to fix it :\

User avatar
Iylae
Regular
Posts: 73
Joined: Sat Jan 09, 2016 6:57 am
Location: Cornwall, UK
Contact:

Re: Problem with Sprite and Textbox

#2 Post by Iylae » Thu Feb 04, 2016 6:49 pm

zorder parameter should allow you to put something at the "front" of the text box:

http://www.renpy.org/doc/html/displayin ... -statement
Image
  If we are what we repeatedly do, then good coding is not an act, but a habit

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

Re: Problem with Sprite and Textbox

#3 Post by philat » Fri Feb 05, 2016 1:53 am

Most people are likely using the side image functionality rather than manually showing images in renpy statements. The side image is added on top of the textbox by default (by virtue of being AFTER the textbox in the say screen), whereas images shown via renpy statements are by default on a lower layer than the say screen.

This probably all sounds like Greek to you, so bottom line is:

Either study side images and how they work (the documentation is decent, and you can find other examples here on the forums)

OR

Show the side image on a higher layer than screens, or on the screens layer with a high zorder. (It's no good to show the image on the master layer with a high zorder, because the screens layer is still higher than the master layer.)

The former will be more efficient in the long run; the latter will be easier to understand for now.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]