Can I change the size of text in a transform?

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
cheesefit
Newbie
Posts: 8
Joined: Thu Aug 09, 2018 6:46 pm
Contact:

Can I change the size of text in a transform?

#1 Post by cheesefit »

Is there a way I can change the text size on a hover?

ie,

Code: Select all

transform me():
    on hover:
        # Possible to change to size 40?

# The text I'd like to change
text "Hover on me" size 20 at me

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Can I change the size of text in a transform?

#2 Post by wyverngem »

I think you're looking for zoom 1.5, but don't quote me I haven't had a chance to test it out.

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Can I change the size of text in a transform?

#3 Post by philat »

text isn't hoverable, so that'd be a problem... if you use a button, you can use a transform to change on hover or change the hovered text style.

Post Reply

Who is online

Users browsing this forum: Rhapsy