Character sprites now won't auto hide after sub folder placement

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
GMHLee
Newbie
Posts: 16
Joined: Thu Aug 25, 2022 7:00 am
Contact:

Character sprites now won't auto hide after sub folder placement

#1 Post by GMHLee » Sun Aug 28, 2022 5:17 am

Hi there, recently decided I wanted to tidy up the images folder.
To do that apparently I needed to rename all image names with undcerscored to replace the spaces IF placed into a sub folder of the images folder.
That works, but now all "show character x" will only display the character over the top of the original if the scene hasn't been cleared.
Any help appreciated, thanks.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Character sprites now won't auto hide after sub folder placement

#2 Post by Alex » Sun Aug 28, 2022 5:43 am

GMHLee wrote:
Sun Aug 28, 2022 5:17 am
Hi there, recently decided I wanted to tidy up the images folder.
To do that apparently I needed to rename all image names with undcerscored to replace the spaces IF placed into a sub folder of the images folder.
That works, but now all "show character x" will only display the character over the top of the original if the scene hasn't been cleared.
Any help appreciated, thanks.
Don't use underscore:
- 'eileen happy' and 'eileen normal' are images with tag 'eileen' so they will replace each other,
- 'eileen_happy' and 'eileen_normal' are two different images that can be shown onscreen simultaneously.

https://www.renpy.org/doc/html/displayi ... l#concepts
https://www.renpy.org/doc/html/displayi ... ing-images

GMHLee
Newbie
Posts: 16
Joined: Thu Aug 25, 2022 7:00 am
Contact:

Re: Character sprites now won't auto hide after sub folder placement

#3 Post by GMHLee » Sun Aug 28, 2022 6:45 am

Ah I see, then there's a problem. Using spaces when in a sub folder will cause it to fail and not find the image.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Character sprites now won't auto hide after sub folder placement

#4 Post by Alex » Sun Aug 28, 2022 7:06 am

GMHLee wrote:
Sun Aug 28, 2022 6:45 am
Ah I see, then there's a problem. Using spaces when in a sub folder will cause it to fail and not find the image.
Anyway, you can define images manually.
https://www.renpy.org/doc/html/displayi ... -statement

GMHLee
Newbie
Posts: 16
Joined: Thu Aug 25, 2022 7:00 am
Contact:

Re: Character sprites now won't auto hide after sub folder placement

#5 Post by GMHLee » Sun Aug 28, 2022 7:16 am

Wouldn't I have to do that for every image?

Post Reply

Who is online

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