Slow-Text & Title Music?

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
QueenModdy
Newbie
Posts: 6
Joined: Fri Feb 08, 2013 6:04 pm
Contact:

Slow-Text & Title Music?

#1 Post by QueenModdy » Thu Dec 26, 2013 12:28 am

I've been trying for HOURS to get the friggin text to do the typewriter effect but wherenever I go in to change the speed it does nothing.

Also I can't figure out how the hell to get music in the title/main menu, though I put the song in through options.
Can you show me exactly how to do this through code, and where do I put the codes exactly??
Thanks!

User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Slow-Text & Title Music?

#2 Post by xavimat » Thu Dec 26, 2013 7:19 am

Hi QueenModdy!

1. With the "typewriter" effect I assume you mean the slow text (not the typewriter sound effect).
You have this line in options.rpy:

Code: Select all

config.default_text_cps = 0
The 0 means "all the text once", you can put 60 or 100 to achieve your effect (or try other numbers to fit your style. Don't put it too slow, because IMO it becomes annoying).
BUT, this config variable is only used the first time the game is executed. This means that you need to "Delete Persistent" from the Launcher to see the changes you do to this variable.
The other way of changing the cps value is, in-game, using the preferences screen.

2. The music in main menu can be defined also in options.rpy. The line is:

Code: Select all

# config.main_menu_music = "main_menu_theme.ogg"
Note that you need to uncomment the line (delete the # and the space):

Code: Select all

config.main_menu_music = "my_track.ogg"
Also note that the route is relative to the "game" directory, if your file is in a subfolder called "music", you need:

Code: Select all

config.main_menu_music = "music/my_track.ogg"
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

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: Slow-Text & Title Music?

#3 Post by trooper6 » Thu Dec 26, 2013 12:56 pm

This question should be in Questions, not Development.
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

QueenModdy
Newbie
Posts: 6
Joined: Fri Feb 08, 2013 6:04 pm
Contact:

Re: Slow-Text & Title Music?

#4 Post by QueenModdy » Tue Dec 31, 2013 8:25 pm

Thanks a lot, that helped! I wish there was a simpler program, ha!
Have an awesome new year!

Post Reply

Who is online

Users browsing this forum: Hojoo