Fixed:Need help with image alignments please

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
jonbai4207
Newbie
Posts: 9
Joined: Thu Apr 27, 2017 12:06 pm
Contact:

Fixed:Need help with image alignments please

#1 Post by jonbai4207 »

So I am not having any luck getting my characters to show up properly. I am trying to show 2 separate characters having a conversation. One on the left and one on the right.
I'm trying to keep it simple and use

(Example)
Show brit at right
Show Chad at left

But the problem is they just keep being placed on one another.
I have tried
xalign
yalign
But they still show up stacked on top of each other.

Trying to keep it simple and get it to work without having to just edit the characters into the position I want. I'm sure it would work but that would require me to make multiple copies of the same character for each position on screen. Have searched the boards to find the answer but no luck. Any help would be much appreciated. Thanks
Last edited by jonbai4207 on Mon Apr 30, 2018 4:20 am, edited 1 time in total.

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Need help with image alignments please

#2 Post by kivik »

There are a few possibilities so it's a bit hard to determine at the moment. Have you declared your own transforms called left and right for instance (that'd override the default settings)? How are the images declared? What are the images sizes vs screen size?

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

Re: Need help with image alignments please

#3 Post by Imperf3kt »

I would assume your images have a lot of transparent space either side?

Perhaps a zealous trim of your files will fix it for you.
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

jonbai4207
Newbie
Posts: 9
Joined: Thu Apr 27, 2017 12:06 pm
Contact:

Re: Need help with image alignments please

#4 Post by jonbai4207 »

The character dimensions are the same size as my screen, which is 1920 x 1080. Most are around 50 kb's. I just drew them out the same size as my screen and then removed them the alpha layer (think that's what's it's called, not to familiar with the terms) and saved as png. Is there a more correct way to do it?
I'll try making them smaller and see of that works though.
Oh also I just defined them the simplest way I know.
define example = "example.png"
If resizing them doesn't work I'll look into my own transitions.
Thank you for the help

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

Re: Need help with image alignments please

#5 Post by Imperf3kt »

Images are by default, aligned to the bottom left.

The default transform 'at left' uses this corner of the image.
The default transform 'at right', uses the bottom right corner.

If your images are the same size as the screen, no repositioning can take place by the default methods because they're already as far left/right as they can go.
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

jonbai4207
Newbie
Posts: 9
Joined: Thu Apr 27, 2017 12:06 pm
Contact:

Re: Need help with image alignments please

#6 Post by jonbai4207 »

Alright. I fixed it. You were both right. Had to resize my canvas to get rid of the excess space. Worked just fine after that.
Thank you both again for the help!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]