Can I sync subtitles to background music in Ren'Py?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Sonomi
Veteran
Posts: 211
Joined: Sat Oct 29, 2016 5:34 am
Projects: Lethargy of Snow
itch: sonomi
Contact:

Can I sync subtitles to background music in Ren'Py?

#1 Post by Sonomi » Sun Jan 08, 2017 5:53 pm

I'm curious if I can make something similar to an anime opening subtitle. I want the lyrics to appear at the bottom of the screen, sort of like this (SAO "Crossing Field" opening, for example), with a still CG in the background. The best case scenario would also have a dot or color effect emphasizing each word. Is it possible to do this with Ren'Py? If so, I would be grateful for any general advice or guidance.

I know how to make text appear in the textbox, like you would for dialogue and narration; however, I'd like to have the lyrics appear outside of that area. Perhaps just above the textbox or along the topmost portion of the screen.
Image

mard
Regular
Posts: 50
Joined: Thu Nov 03, 2016 3:38 am
Location: Standing right behind you.
Contact:

Re: Can I sync subtitles to background music in Ren'Py?

#2 Post by mard » Sun Jan 08, 2017 10:00 pm

What you have in that pic is hard embedding of subbs, they likely used .ass files, and encoded them into the video through programs such as Aegisub. It's more work than it seems to do those subtitles.

Doing it in Ren'Py without hard-embedding the subs, song, and CG into a mpeg of mp4, and then calling it, I have no idea how you would do that, nor if it is even possible to do it without doing it as a video file.
Tend to be a bit quiet, but will help where I can.

Enjoy the drinks folks.

User avatar
Sonomi
Veteran
Posts: 211
Joined: Sat Oct 29, 2016 5:34 am
Projects: Lethargy of Snow
itch: sonomi
Contact:

Re: Can I sync subtitles to background music in Ren'Py?

#3 Post by Sonomi » Sun Jan 08, 2017 10:56 pm

Okay, I understand.

Perhaps it would be easier to compose a video... I'll have to read over the tutorial again to see how that works.
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Can I sync subtitles to background music in Ren'Py?

#4 Post by Imperf3kt » Sun Jan 08, 2017 11:30 pm

This is precisely what ATL is for.
Make the subtitles an image, then code them with the time function.
I'm unable to give an example right now, but I can almost guarantee it is easily doable.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], minyan