Image error/PLEASE HELP

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
gdf
Newbie
Posts: 11
Joined: Thu Jan 18, 2018 3:57 pm
Contact:

Image error/PLEASE HELP

#1 Post by gdf »

Icouldnt add any images to my visual novel game ,I have tried several times and it didnt work.I put all the images in the game(project) folder.PLEASE HELP

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Image error/PLEASE HELP

#2 Post by Imperf3kt »

Place the images (in .jpg, .webp or .png format) inside the image folder located in the game folder.
Then in your script you need to show them. Since renpy 6.99.12, images are automatically defined, so the following is all you need to do:

Lets assume you have the file "flowers.jpg" in your images folder. To show this image in game, simply type:

Code: Select all

label start:
    show flowers
The following will also work:

Code: Select all

label start:
    show "flowers.jpg"

Code: Select all

label start:
    show "images/flowers.jpg"

Code: Select all

image flowers = "flowers.jpg"

label start:
    show flowers

Code: Select all

image flowers = "images/flowers.jpg"

label start:
    show flowers
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

gdf
Newbie
Posts: 11
Joined: Thu Jan 18, 2018 3:57 pm
Contact:

Re: Image error/PLEASE HELP

#3 Post by gdf »

Thanks Ill try that!

gdf
Newbie
Posts: 11
Joined: Thu Jan 18, 2018 3:57 pm
Contact:

Re: Image error/PLEASE HELP

#4 Post by gdf »

Thanks so much it worked!!!

Post Reply

Who is online

Users browsing this forum: No registered users