Change Image Scale

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
neometalero
Regular
Posts: 198
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Change Image Scale

#1 Post by neometalero »

Hi, I want to know how could I change the scale of the image by code.
Im placing an image in the position I want with this code but how do I change the scale? Tks

Code: Select all

show BPer:
                pos (1030, 100)
Working on many weird narrative games at Curse Box Studios
Image
https://www.curseboxstudios.com/

Dr_arell
Regular
Posts: 70
Joined: Sun Feb 23, 2020 11:24 pm
Deviantart: DarellArt
Contact:

Re: Change Image Scale

#2 Post by Dr_arell »

just replace pos by size

Code: Select all

show image_example:
	pos (1030, 100)
	size (1920, 1080)

User avatar
neometalero
Regular
Posts: 198
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Re: Change Image Scale

#3 Post by neometalero »

Dr_arell wrote: Fri Sep 18, 2020 12:20 pm just replace pos by size

Code: Select all

show image_example:
	pos (1030, 100)
	size (1920, 1080)
When I use size that way the image turns invisible, don't know what's happening there. No error is displayed.
This is the code.

Code: Select all

show BPer:
                pos (1030, 100)
                size (0.5,0.5)
Working on many weird narrative games at Curse Box Studios
Image
https://www.curseboxstudios.com/

Dr_arell
Regular
Posts: 70
Joined: Sun Feb 23, 2020 11:24 pm
Deviantart: DarellArt
Contact:

Re: Change Image Scale

#4 Post by Dr_arell »

the size must be given in a normal resolution, (500,500) (1000,1000) doing 0.5 wont show it or will be too small too appreciate, i verified before responding, trust me it works. try size (1000,1000)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]