Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
- Posts: 60
- Joined: Sun Jun 16, 2019 7:59 pm
- Github: trajano
I am trying to see if I can avoid making another image for the SideImage() This bit of code works with the default "side" image implementation which shows the face.
Code: Select all
image side natalie:
crop(167, 332, 500, 500)
Right now I'm trying to do something like https://cdn1-www.playstationlifestyle.n ... 55x315.jpg
so that it shows just the eyes.
The way I did it was
Code: Select all
add AlphaMask(SideImage(), "screens/ui/say-mask.png", xalign=1.0) maxsize (360, 155) alpha 0.4
and I took out
so it all fits nicely. https://pasteboard.co/InAQi24.png
However, when the zoom is set on the image, the image goes a bit out of whack, like it only shows the top half
- Posts: 56
- Joined: Tue Sep 04, 2018 7:58 am
Hello trajano, not sure if i can help you with this. Just try to change some of the coordinates, like "crop". or "xalign", "maxsize" etc. Maybe "zoom" too (to, bigger, 1.0)?
Change just one thing, then restart to try out. This way you can easier track down what change happens. Then try with the other position stuff. Renpy can be told to use pixel position and the Renpy own coordinates, you know. You can also do "ypos"+"xpos" as variables to define a position an image has to show up.
- Eileen-Class Veteran
- Posts: 1480
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
As M-77 says, take it in steps to find what part is glitching (I've a suspicion that it is the maxsize (360, 155) (which applies another zoom btw)... Is 360 wide by 155 tall the proper max size?)
Basically, (maybe on a non side image first) just check the crop works, then check the zoom works then add the AlphaMask with no styling and finally add in the styling...
Users browsing this forum: No registered users