I have resized my image file but there's no difference!!!

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
HikariYamino
Newbie
Posts: 7
Joined: Fri Apr 22, 2011 3:04 pm
Contact:

I have resized my image file but there's no difference!!!

#1 Post by HikariYamino » Fri Apr 22, 2011 3:09 pm

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

User avatar
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!!

#2 Post by Blue Lemma » Fri Apr 22, 2011 3:45 pm

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 : )

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!!

#3 Post by HikariYamino » Sat Apr 23, 2011 7:41 am

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! :)
Attachments
properties.jpg
The properties of the bkgrd and character. the bkgrd is the conveni_y and character is the untitled2
script.jpg
script
Untitled2.png
Character
conveni_y.jpg
the bkgrd
screenshot.jpg
Screenshot when launching the game

User avatar
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!!

#4 Post by choklitchan » Sat Apr 23, 2011 9:27 am

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. :P 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.
Finished:
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!!

#5 Post by HikariYamino » Thu Apr 28, 2011 9:40 am

Thank you very much! It worked!!!! <3 <3

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot], _ticlock_