Em-dash 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
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Em-dash in Ren'py

#1 Post by Kinmoku »

Hi guys! I'm working on a fun otome game and I have half the script more-or-less ready!
(Also, this is my first post here - hello!)

I have a question about using em-dashes in Ren'py...

I wrote my script in TextEdit and copied over the script containing the em-dash but it turned into a normal hyphen. Is there a special bit of code I need to create an em-dash? I imagine I'll need other weird punctuation commands later down the line too!

Thanks.

User avatar
ketskari
Veteran
Posts: 296
Joined: Tue Dec 21, 2010 6:22 pm
Completed: Asher, Sunrise, Tell a Demon
Projects: Asher Remake, TEoA
Organization: Sun Labyrinth
Tumblr: sunlabyrinth
Deviantart: sunlabyrinth
itch: sunlabyrinth
Contact:

Re: Em-dash in Ren'py

#2 Post by ketskari »

You don't have to code anything special. You can just copy and paste it. Run the game and check if it's not an mdash first--in the code an mdash may look shorter (at least it does for me in JEdit), but how it looks in-game depends on your font.

As for other punctuation characters, it often depends on your font, but the one that requires a bit of work is in the case when you use quotes, " then you have to precede them with a backslash. \" like that.

This question probably belongs in the Ren'Py Questions and Announcements section. :)

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Em-dash in Ren'py

#3 Post by Kinmoku »

It's looking like a hyphen in game too so I'll check the font! Thanks :D

User avatar
Taleweaver
Writing Maniac
Posts: 3428
Joined: Tue Nov 11, 2003 8:51 am
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
Organization: Tall Tales Productions
Location: Germany
Contact:

Re: Em-dash in Ren'py

#4 Post by Taleweaver »

Ren'Py questions go into the Ren'Py Questions forum.

Moved.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira

Post Reply

Who is online

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