inserting images

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
ohmyquaffle
Newbie
Posts: 1
Joined: Sat Jul 23, 2016 4:30 pm
Contact:

inserting images

#1 Post by ohmyquaffle » Sat Jul 23, 2016 4:34 pm

Hello! :D
So recently I started coding (for the first time) a virtual novel, im trying to insert my image and I got it into the game but it does not take up the full screen, I don't know if this is just because the image is too small or if it is just a coding error.
Here is my code
image aaftm = "anime academy"

Thank you for your help!!! :P

User avatar
chocoberrie
Veteran
Posts: 254
Joined: Wed Jun 19, 2013 10:34 pm
Projects: Marshmallow Days
Contact:

Re: inserting images

#2 Post by chocoberrie » Sat Jul 23, 2016 5:30 pm

The first thing I see is, you're missing the file extension in the name! Is it a .jpg or a .png file?

If it's a .jpg file:

Code: Select all

image aaftm = "anime academy.jpg"
If it's a .png file:

Code: Select all

image aaftm = "anime academy.png"
If it's is a background image (I'm assuming it is), you show it in the game like this:

Code: Select all

label start:
   scene aaftm
Background images use the scene statement, whereas character sprites and other images use the show statement. I hope this helps! :)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: inserting images

#3 Post by xavimat » Sun Jul 24, 2016 10:03 am

Check the size in pixels of your image and the size in pixels of your game (config.screen_width and config.screen_height, at the beginning of the options.rpy file)
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: _ticlock_