Zooming sprite problem

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
nosoclever
Newbie
Posts: 13
Joined: Thu Feb 12, 2015 9:43 pm
Contact:

Zooming sprite problem

#1 Post by nosoclever »

So i have this sprite image wich size is 780x 1225 the screen is 800x600
so i used the zoom to make it smaller
like this:

show pepin normal:
xpos 430 ypos 600
zoom .5
...and it worked and it adjusted to the screen size.

but when i want to show it as it real size without the zoom, it keeps showing the adjusted size.

i tried this but it didn´t work :cry:

show pepin normal:
xpos 430 ypos 600
zoom 5

is there a way to make the sprite big again?
help is appreciated!

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Zooming sprite problem

#2 Post by OokamiKasumi »

nosoclever wrote:So i have this sprite image wich size is 780x 1225 the screen is 800x600
so i used the zoom to make it smaller
like this:

Code: Select all

show pepin normal:
        xpos 430 ypos 600
        zoom .5
...and it worked and it adjusted to the screen size.

but when i want to show it as it real size without the zoom, it keeps showing the adjusted size.

i tried this but it didn´t work :cry:

Code: Select all

show pepin normal:
        xpos 430 ypos 600
        zoom 5
is there a way to make the sprite big again?
If you use the same NAME for your images, of course you're going to show the First image that was called, silly...!

What you need is to set up two different image names so you can call two different images [pepin large] and [pepin normal] .

Example:

Code: Select all

image pepin normal:
    xpos 430 ypos 600
    zoom .5

image pepin large:
    "pepin normal" #Takes this image and scales it.
    xpos 430 ypos 600
    zoom 5 
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot