Here's the thing: I have this action on an imagebutton:
Code: Select all
action Show('videos', girl=girl)
Code: Select all
screen videos(girl):
modal True
if unlock_vid:
add "girls/[girl.name]_videos.png" pos (122, 76)
if girl.vid1:
imagebutton:
idle "girls/[girl.name]_vid1.png"
hover "girls/[girl.name]_hvid1.png"
pos (156, 291)
action None
if girl.vid2:
imagebutton:
idle "girls/[girl.name]_vid2.png"
hover "girls/[girl.name]_hvid2.png"
pos (156, 502)
action None
The funny thing comes once you read the traceback. If I delete the _videos.png, the traceback is as follows (for instance, for an object whose name is Lucy):
Exception: DynamicImage u'girls/[girl.name]_videos.png': could not find image. (u'girls/Lucy_videos.png')
As I said, when that image is in the folder, it is correctly displayed on the screen. On the contrary, the traceback I get with the other images is this one:
Exception: DynamicImage u'girls/[girl.name]_hvid1.png': could not find image. (u'girls/[girl.name]_hvid1.png')
As you can see, it's like in the first case the game knows exactly what's the name of the file that it's looking for, but in the second case, it doesn't.
Why is this? How can I do to get to display the vid1, hvid1, vid2 and hvid2 images? Thank you!