I have resized my image file but there's no difference!!!
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.
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.
-
HikariYamino
- Newbie
- Posts: 7
- Joined: Fri Apr 22, 2011 3:04 pm
- Contact:
I have resized my image file but there's no difference!!!
I alr resize the bkgrd to 800X600 and the character to 453X600, but when i launch the game, the bkgrd is sooo frickin small and the character is so frickin big that you can only see his chin and shirt!! I tried to troubleshoot, but i dunno what i'm doing wrong!!! Help!!! T_T
- Blue Lemma
- Forum Founder
- Posts: 2005
- Joined: Sat Jan 25, 2003 2:32 pm
- Completed: ToL, Shoujo Attack!, Lemma Ten
- Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
- Contact:
Re: I have resized my image file but there's no difference!!
Do you have a screenshot?
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
- Napoleon Bonaparte
I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )
-
HikariYamino
- Newbie
- Posts: 7
- Joined: Fri Apr 22, 2011 3:04 pm
- Contact:
Re: I have resized my image file but there's no difference!!
I attached a few screenshots here. If you need anything else, pls tell me! T_T I'm gg craaazyyy. Thank you for the help!!!!! Really appreciate it! 
- choklitchan
- Regular
- Posts: 143
- Joined: Sun Mar 13, 2011 12:28 am
- Contact:
Re: I have resized my image file but there's no difference!!
I'm just a beginner with renpy, and know very little programming, but this is how I do it-
Declare your background image this way:
image bg background = im.Scale("background.jpg", 800, 600)
800 being the width
600 being the height
As for the sprite, this happens to me often too. You could use manually use an image editor to resize it again, and just keep trying sizes out until they work.
The long way. This is how I do sprites, though. I'm sure there's a much better and faster way somewhere out there, but for me, this is the least complicated.
I suppose you can use the above formula too, though it would be kind of tricky to get things back to scale. There's also:
im.FactorScale(im, width, height=None, bilinear=True, **properties)
An image manipulator that scales im (a second image manipulator) to width times its original width, and height times its original height. If height is ommitted, it defaults to width.
If bilinear is true, then bilinear interpolation is used for the scaling. Otherwise, nearest neighbor interpolation is used.
image logo doubled = im.FactorScale("logo.png", 1.5)
*From renpy documentation,
but I don't know how to get it smaller; only bigger. :/
Hope this helps in some way.
Declare your background image this way:
image bg background = im.Scale("background.jpg", 800, 600)
800 being the width
600 being the height
As for the sprite, this happens to me often too. You could use manually use an image editor to resize it again, and just keep trying sizes out until they work.
I suppose you can use the above formula too, though it would be kind of tricky to get things back to scale. There's also:
im.FactorScale(im, width, height=None, bilinear=True, **properties)
An image manipulator that scales im (a second image manipulator) to width times its original width, and height times its original height. If height is ommitted, it defaults to width.
If bilinear is true, then bilinear interpolation is used for the scaling. Otherwise, nearest neighbor interpolation is used.
image logo doubled = im.FactorScale("logo.png", 1.5)
*From renpy documentation,
but I don't know how to get it smaller; only bigger. :/
Hope this helps in some way.
Finished:
Shrinkled
Mobile Food Madness (Polymorphic Games)
Works in Progress
The Truth of the Legends (Hiatus)
Shrinkled
Mobile Food Madness (Polymorphic Games)
Works in Progress
The Truth of the Legends (Hiatus)
-
HikariYamino
- Newbie
- Posts: 7
- Joined: Fri Apr 22, 2011 3:04 pm
- Contact:
Re: I have resized my image file but there's no difference!!
Thank you very much! It worked!!!! <3 <3
Who is online
Users browsing this forum: Majestic-12 [Bot], _ticlock_
