Page 1 of 1

Switching focus on characters? (help)

Posted: Sun Dec 04, 2016 1:52 pm
by asatiir
I tried every possible way to search for this and failed so I apologize if the solution is already out there and is worded better than I tried to. My game has scenes where there are more than two characters on screen in one go, with text it would be very difficult to see who's talking and was considering of dimming the inactive character's sprites while keeping the talking ones in full brightness. I found a solution in the tutorial game folder but I have a problem with it:

Code: Select all

image logo bright = im.MatrixColor("logo.png",
                                       im.matrix.brightness(.5))
This would be great if the game involved one or two characters since it just mean a few sets of this code would work, but then I have several animated sprites so this means more than one for each character. I could try and make that set (as cubersome as it may get), but I'm wondering if there's a more efficient way to do this?

Re: Switching focus on characters? (help)

Posted: Sun Dec 04, 2016 6:25 pm
by Donmai
I have to agree that's not an easy search. I could find it because I have a post on the first thread. You want the _last_say_who variable.
viewtopic.php?f=8&t=35367
http://lemmasoft.renai.us/forums/viewto ... =8&t=34286

Re: Switching focus on characters? (help)

Posted: Tue Dec 06, 2016 7:27 pm
by asatiir
Sorry that I had to reply so late, both options you posted seem good for static images but not animated ones. (sorry for not making it clearer in the original post)

Re: Switching focus on characters? (help)

Posted: Tue Dec 06, 2016 8:59 pm
by Donmai
Ok.

Re: Switching focus on characters? (help)

Posted: Wed Dec 07, 2016 12:07 pm
by asatiir
I posted that around 4AM my time, I came to realize that if they're shaded and animated the screen is going to be very busy. The second link will be very useful for what I have in mind, if only I can find a way to catch the last frame of the animation of the inactive character(s)

P.S. @Donmai You tend to be among the first to come and help whenever I ask something here, and I thank you for that lol