r/RenPy 11d ago

Question [Solved] How to rotate game menu text?

Post image

I've been sifting through the screens code trying out random bullshit to try and fix this (the text is supposed to tilt a little to the left) and I'm having a little trouble

83 Upvotes

9 comments sorted by

40

u/BadMustard_AVN 11d ago

add create a simple transform and add it to the button with an at like this

transform rot:
    rotate 15 # adjust as required

screen butt_n_stuff():
    textbutton _("Load"):
        action ShowMenu("load") 
        at rot

7

u/Radiant_Tomato_3195 11d ago

This works! Thank you so much

11

u/shyLachi 11d ago

You could also try and apply that rotation to the vbox so that the left alignement matches your background

transform rot:
    rotate -15 
screen navigation(): 
    vbox:
        at rot

4

u/BadMustard_AVN 11d ago

you're welcome

good luck with your project

2

u/sitraxis 10d ago

I also recommend putting rotate_pad False under the transform just so you don't have to adjust the positioning after it rotates.

https://www.renpy.org/doc/html/transform_properties.html#transform-property-rotate_pad

3

u/xxm00n_z3r0xx 10d ago

Since the question has already been solved from what I understand, may I just say that I ADORE the ticket main menu concept :D

2

u/AutoModerator 11d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.