Displaying images in / with text in NVL mode

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
kodav4
Newbie
Posts: 3
Joined: Sun Feb 17, 2019 5:54 pm
Projects: Deus Ex Machina, Phigame
Tumblr: kodav4
itch: kodav4
Contact:

Displaying images in / with text in NVL mode

#1 Post by kodav4 »

Hello! I'm slowly piecing together a draft of a game, and a brief part of it is a sort of chatroom function. I'm using the novel mode for this.

I'm wondering how I could display an image in the novel mode, in-line with the normal dialogue.

Excuse the barebones / crude look of it right now, but here's what it currently looks like:
Image

and here's a photoshop mockup of what i'd like to accomplish:
Image

Is there some way to do this that i'm missing?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Displaying images in / with text in NVL mode

#2 Post by Imperf3kt »

Use the image tag.

Code: Select all

    nvl_character "Oh look, an image {image='my image.jpg'}"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

kodav4
Newbie
Posts: 3
Joined: Sun Feb 17, 2019 5:54 pm
Projects: Deus Ex Machina, Phigame
Tumblr: kodav4
itch: kodav4
Contact:

Re: Displaying images in / with text in NVL mode

#3 Post by kodav4 »

Thank you, that works! Only issue is that it doesn't seem to scale properly. It cuts below the bottom of the screen, and further messages are hidden until the message limit is reached and it's reset.

Image

If there's some way for the text to start at the bottom and go up (like a Discord chatroom, for example), that would be ideal. But other than limiting the amount of messages that can be displayed at once to something small (thus leaving lots of weird blank space at the bottom when long messages / images arent being shown), I just don't really know how to make it work.

kodav4
Newbie
Posts: 3
Joined: Sun Feb 17, 2019 5:54 pm
Projects: Deus Ex Machina, Phigame
Tumblr: kodav4
itch: kodav4
Contact:

Re: Displaying images in / with text in NVL mode

#4 Post by kodav4 »

bump. I cant seem to edit the actual text position to fix it either..

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Displaying images in / with text in NVL mode

#5 Post by Imperf3kt »

Have you used nvl_clear to refresh the NVL screen?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot]