Error when resizing a side sprite using LayeredImageProxy [SOLVED]

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
pyopyon
Veteran
Posts: 451
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Error when resizing a side sprite using LayeredImageProxy [SOLVED]

#1 Post by pyopyon »

Hello--

I used the Ren'Py Documentation entry on Layered Image Proxy to resize my sprites like so: https://www.renpy.org/doc/html/layeredi ... red-images and it shows up fine for all of my sprites EXCEPT for my side image sprite.

How I declare my normal sprites:

Code: Select all

image ac = LayeredImageProxy("ascha", Transform(crop=(0, 0, 2185, 3952), zoom=0.25, yoffset=145))
How I declare my side image sprite:

Code: Select all

image side nv = LayeredImageProxy("nova_monroe", Transform(crop=(0, 0, 2255, 3316), zoom=0.155, xoffset=125))
I don't know why, but any time there's a change in screen (open the preference menu, vpunch transition, or an image map) the side sprite reverts to xoffset=0. Unless I roll back, in which it goes back to xoffset=125, as declared. If I scroll forward, the sprite stay in the right place, but if I click forward... strangely it all back to the offscreen corner again.

I took a gif of it in action.

https://gyazo.com/76373c4d5d18593dd3a8f4b6777dc334

In it, I'm going through text, I roll back, and when I scroll forward through the text again (without clicking), it acts normal before shifting when the text is new again. Any help would be appreciated, since I definitely didn't change anything.

Alternatively, other methods used to resize a side sprite in RenPy (not in an image program) would be very appreciated.

Thank you in advance!
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

User avatar
pyopyon
Veteran
Posts: 451
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Re: Error when resizing a side sprite using LayeredImageProxy [SOLVED]

#2 Post by pyopyon »

Figured it out....

Note to self.... remember that the position of the Side Image is in the screens.rpy and to adjust that when using Layered Image Proxy for side images instead of declaring the position in the define. Oops.
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

Post Reply

Who is online

Users browsing this forum: Sugar_and_rice