Active Speaker Project

This section is for people to post assets that people can use in their games. Everything here should have a creative commons or other open license, or be in the public domain.
Post Reply
Message
Author
demwilson
Newbie
Posts: 4
Joined: Sat Sep 28, 2019 11:09 pm
Github: demwilson
Contact:

Active Speaker Project

#1 Post by demwilson »

I was asked by a friend to make it easy to tell who is talking with a slight glance at the screen.

This turned into the Active Speaker Project:
https://gitlab.com/demwilson/active_speaker

I accomplish the task by rendering the person talking normally while rendering the inactive characters with a dimmer (AlphaMask).
The code above contains how to implement active speaking in a visual novel, while attempting to reduce the amount of code required to handle rendering scenes using the active speaker concept.
Another minor goal is to accomplish this while keeping the number of required images low.

There are other Ren'Py features used in the code as well:
* Creator-Defined Statements - https://www.renpy.org/doc/html/cds.html
* Movement based transforms - https://www.renpy.org/doc/html/transforms.html
* AlphaMask - https://www.renpy.org/doc/html/displaya ... #AlphaMask
* Basic Composite - https://www.renpy.org/doc/html/displaya ... #Composite
* Image Flip - https://www.renpy.org/doc/html/displaya ... ml#im.Flip
* ConditionSwitch - https://www.renpy.org/doc/html/displaya ... tionSwitch

If you want to see how it works before looking through the code, here is a demo of how active speaker works when the project is run with Ren'Py:
https://www.youtube.com/watch?v=9DVYmCpjSX0

I'm using assets from generous artists and musicians in the Ren'Py community, please support them, if you can.
Assets:
* Wisteria Sprite - (https://liah0227.itch.io/wisteria) by Liah (https://liah0227.itch.io/)
* Hoshiko Sprite - (https://liah0227.itch.io/hoshiko) by Liah (https://liah0227.itch.io/)
* Megalopolitan Education Background - (viewtopic.php?f=52&t=33202&p=413452&hil ... 40#p413452) by Uncle Mugen (https://alte.itch.io/uncle-mugens-backgrounds)

Music:
* As the Wind Carries (https://kinetiklee.bandcamp.com/track/a ... nd-carries) by Kinetik Lee (https://soundcloud.com/kinetik-lee)

I'm still new to Ren'Py, and I'm looking to improve, so if I missed something, or you have suggestions, please feel free to post a comment, or even send over a pull/merge request.

User avatar
quillyquillquill
Regular
Posts: 30
Joined: Thu Sep 03, 2015 6:26 am
Projects: A Summer with the Shiba Inu
Organization: Quill Studios
itch: quill-studios
Contact:

Re: Active Speaker Project

#2 Post by quillyquillquill »

Hey, thank you so much for sharing this! Really like the way you've organized the code.

User avatar
Morhighan
Miko-Class Veteran
Posts: 975
Joined: Sun Jun 27, 2010 12:54 pm
Completed: AIdol, When Our Journey Ends, Forgotten Not Lost
Organization: MysteryCorgi
Tumblr: MysteryCorgi
Deviantart: MysteryCorgi
Soundcloud: MysteryCorgi
itch: MysteryCorgi
Location: USA
Contact:

Re: Active Speaker Project

#3 Post by Morhighan »

Thank you for sharing this, it's very likely I'll make use of it in the future.

Post Reply

Who is online

Users browsing this forum: No registered users