Shadow in the text

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
tuna_sushi
Veteran
Posts: 299
Joined: Thu Jul 07, 2011 9:33 am
Projects: BloomingBlossoms
Contact:

Shadow in the text

#1 Post by tuna_sushi »

How can we put shadow in our texts?
Something like this:
Image

User avatar
Alex
Lemma-Class Veteran
Posts: 3095
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Shadow in the text

#2 Post by Alex »

You need to set the "drop_shadow" property, like

Code: Select all

screen my_scr:
    text "Some text":
        color "#fff" size 36 drop_shadow (4,4) drop_shadow_color "#000"
# The game starts here.
label start:
    show screen my_scr
    
    "Hello, world!"
http://www.renpy.org/wiki/renpy/doc/ref ... Properties

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Shadow in the text

#3 Post by SundownKid »

To change the entire game's text, you can use this:

Code: Select all

style.default.drop_shadow = [(1, 1)]

tuna_sushi
Veteran
Posts: 299
Joined: Thu Jul 07, 2011 9:33 am
Projects: BloomingBlossoms
Contact:

Re: Shadow in the text

#4 Post by tuna_sushi »

Thank you! It works now :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], henne