How can I display an image Pre-rotated?

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
arcdawn
Regular
Posts: 26
Joined: Mon Jan 02, 2017 7:08 pm
Contact:

How can I display an image Pre-rotated?

#1 Post by arcdawn »

Hello everyone, I'm still somewhat new to the Renpy scripter language.

I want to be able to reuse the same image and have the image be displayed at both 0 degrees of rotation and 90 degrees of rotation without the rotation animation.

Sorry if that seems like a very obvious thing on Renpy, but I haven't found out how to do that yet!

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: How can I display an image Pre-rotated?

#2 Post by indoneko »

You can declare a new image which contains your original image and a transform (rotation).

Code: Select all

image eileenrotate:
    "images/eileen.png"
    rotate 90
You would benefit yourself by reading the renpy documentation. It's already included when you download your Renpy SDK.
My avatar is courtesy of Mellanthe

arcdawn
Regular
Posts: 26
Joined: Mon Jan 02, 2017 7:08 pm
Contact:

Re: How can I display an image Pre-rotated?

#3 Post by arcdawn »

Ah I see. I did read the documentation but I was under the impression that rotate would cause the animation of rotating 90 deg to happen. Thanks for clearing that up for me!

Post Reply

Who is online

Users browsing this forum: Lucyper, Majestic-12 [Bot]