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:
and here's a photoshop mockup of what i'd like to accomplish:
Is there some way to do this that i'm missing?
Displaying images in / with text in NVL mode
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.
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.
- 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
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- 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
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.
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.
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.
-
- 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
bump. I cant seem to edit the actual text position to fix it either..
- 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
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Who is online
Users browsing this forum: Google [Bot]