say-with-attribute Negation Not Working for Layered Image

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

say-with-attribute Negation Not Working for Layered Image

#1 Post by trooper6 »

I'm testing some Layered Image stuff and I think I've found a bug.

I have a layered image and the attribute "photo" shows the image holding a photo. default is the image not showing the photo.
It seems that adding say-with-attributes works fine, but negating and attribute with a say-with-attribute isn't working.

This works:

Code: Select all

label start:
    show barber
    b photo "I'm holding a photo."
    show barber -photo
    b "I'm no longer holding a photo."
This doesn't work even though my reading says it should:

Code: Select all

label start:
    show barber
    b photo "I'm holding a photo."
    b -photo "I'm no longer holding a photo."
This seems like a bug, no?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: say-with-attribute Negation Not Working for Layered Image

#2 Post by trooper6 »

Doing a bit more testing on negating attributes with layered images, I noticed another things that seems to not work the way the documentation indicates.

The May Patreon article says that if you have an image: eileen casual concerned sweatdrop showing and you want to get rid of the sweat drop, there are two ways to do it:

a)
show eileen casual concerned

and

b)
show eileen -sweatdrop

with a layered image, b works but a doesn't.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: say-with-attribute Negation Not Working for Layered Image

#3 Post by PyTom »

I have the negation issue marked as a bug to work on.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: say-with-attribute Negation Not Working for Layered Image

#4 Post by trooper6 »

Thanks a lot PyTom! That is pretty awesome of you.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: No registered users