numaej wrote: ↑Fri Aug 30, 2019 2:48 pm
Honestly, I did everything the way it supposed to be done, it didn't work and trust me, I tried few different combinations, well... it's bad for me, but screw it, I can't let myself sit and wonder for the whole day why simple code is not working. So, I changed the names and everything seems working.
For the future generations:
if you want to use renpy animation option, images you'll use must be placed directly in the main 'images' folder
Now, I ran into another weird problem... Changing the names seemed to solve to issue with displaying images. Renpy finds them easily now but... Well, but if I want renpy to show again an image that was already shown it doesn't do it. There's no error, though. It just ignores the command. What the hell?
Anyone?
My God, it's so annoying that such simple stuff makes me struggle so much.
Declaring images requires tag and an optional attribute. You can read more of it in here.
https://www.renpy.org/doc/html/displayi ... html#image
Code: Select all
An image name consists of one or more names, separated by spaces. The first component of the image name is called the image tag. The second and later components of the name are the image attributes.
For example, take the image name mary beach night happy. The image tag is mary, while the image attributes are beach, night, and happy.
So if you declared an image like this
Code: Select all
image ch1 home 1 ....
image ch1 home 2 ....
ch1 is the image tag and home 1 and home 2 are the images' attributes.
In renpy, images declared with the same tag supersedes the other.
If you will call this two images..
Only one image will appear on the example above because they're of the same tag. Technically, they replace each other each time they are called. TLDR only one image with the same tag can be shown at the same time.
Lucky for you, you can override this through the use of "as" property.
Code: Select all
# Show an image on the right side of the screen.
show mary night happy at right
##$ renpy.show("mary...,)
# Show the same image twice.
show mary night sad as mary2 at left
## $ renpy.show("mary..., tag="mary2")
So, the reason why your images replace each other maybe because they are of the same tag. Using as will solve the problem. Heres the doc about it.
https://www.renpy.org/doc/html/displayi ... -statement