Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Thu May 23, 2013 9:15 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Feb 16, 2012 4:36 am 
Newbie

Joined: Thu Feb 16, 2012 4:30 am
Posts: 2
I just came across Ren'Py and I am so impressed. I have been wanting to produce a VN for a few years now and now this looks to be within my grasp using this engine. My question relates to the kind of VN I want to make.

The concept of my VN is a mix of standard VN story, with role playing game mechanics AND language learning. To be specific I want to teach the user Chinese while they play. This would require that both English and Chinese fonts are enabled at the same time. Is this possible using the Ren'Py engine? Or perhaps enabling one language in one scene then enabling another in the next? What would the code look like for this? Thanks for any help that is offered!


Top
 Profile Send private message  
 
PostPosted: Thu Feb 16, 2012 5:04 am 
Veteran
User avatar

Joined: Sun Jan 09, 2011 7:10 am
Posts: 379
dhoushi wrote:
This would require that both English and Chinese fonts are enabled at the same time.
Chinese fonts usually include English characters.


Top
 Profile Send private message  
 
PostPosted: Thu Feb 16, 2012 10:14 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10776
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
You can fairly easily enable a font on a per-character basis:

Code:
define cc = Character("้ˆดใ€…", who_font="chinese_font.ttf", what_font="chinese_font.ttf")

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Fri Feb 17, 2012 6:30 am 
Newbie

Joined: Thu Feb 16, 2012 4:30 am
Posts: 2
Okay great! I was able to get it working. I only have one other question in this regard, does the user need to have the fonts installed themselves? I placed the .ttf in my game directory, and was unsure if the project was pulling the font as a resource or just using the installed one on my computer.


Top
 Profile Send private message  
 
PostPosted: Fri Feb 17, 2012 10:12 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10776
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
It will use the TTF from the game directory.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group