Is it possible to change the default image location?

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
SLim_Games
Newbie
Posts: 23
Joined: Tue Mar 20, 2018 11:37 am
itch: slim-games
Contact:

Is it possible to change the default image location?

#1 Post by SLim_Games »

Hi, I would like to know if it is possible to change the renpy default image folder? For example if I press a key it will change to a different image folder as the default folder.
Play my game (nsfw) for free at: https://www.patreon.com/SLim_Games

SLim_Games
Newbie
Posts: 23
Joined: Tue Mar 20, 2018 11:37 am
itch: slim-games
Contact:

Re: Is it possible to change the default image location?

#2 Post by SLim_Games »

Nobody got an answer?
Play my game (nsfw) for free at: https://www.patreon.com/SLim_Games

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Is it possible to change the default image location?

#3 Post by Remix »

Though you can set the folders that Ren'py searches for images, the evaluation is *likely* done at init so would not really work on a dynamic basis.
You can try if you want though:
Image Search Path
or
Archive Searching

Using DynamicImages would likely be best though:

Code: Select all

default image_style = "fuzzy"
image some_ref = DynamicImage( "images/[image_style]/some_image.png" )

label start:
    show some_ref
    "..."
    $ image_style = "gaussian"
    "..."
Frameworks & Scriptlets:

SLim_Games
Newbie
Posts: 23
Joined: Tue Mar 20, 2018 11:37 am
itch: slim-games
Contact:

Re: Is it possible to change the default image location?

#4 Post by SLim_Games »

Remix wrote: Fri Mar 30, 2018 5:33 am Though you can set the folders that Ren'py searches for images, the evaluation is *likely* done at init so would not really work on a dynamic basis.
You can try if you want though:
Image Search Path
or
Archive Searching

Using DynamicImages would likely be best though:

Code: Select all

default image_style = "fuzzy"
image some_ref = DynamicImage( "images/[image_style]/some_image.png" )

label start:
    show some_ref
    "..."
    $ image_style = "gaussian"
    "..."
cool thanks a lot, I'm gonna try that
Play my game (nsfw) for free at: https://www.patreon.com/SLim_Games

Post Reply

Who is online

Users browsing this forum: No registered users