How to adjust character sprite?

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
zanearaki
Newbie
Posts: 7
Joined: Mon Apr 21, 2014 11:38 pm
Projects: A Story of Regaria
Tumblr: zanearaki
Contact:

How to adjust character sprite?

#1 Post by zanearaki » Wed Apr 22, 2015 8:25 am

http://lemmasoft.renai.us/forums/viewto ... =8&t=25694

http://lemmasoft.renai.us/forums/viewto ... 91#p294991

http://lemmasoft.renai.us/forums/viewto ... =8&t=25380

I have read all three threads. Currently this is my problem: What I originally want to do is to put her above the text box. I want to customize her position manually but I still don't understand the input I should give to X and Y. Can you give me the standard value of X and Y?

Thank you.. hope anyone in this forum will be happy to help.

:)

User avatar
firecat
Miko-Class Veteran
Posts: 540
Joined: Sat Oct 25, 2014 6:20 pm
Completed: The Unknowns Saga series
Projects: The Unknown Saga series
Tumblr: bigattck
Deviantart: bigattck
Skype: bigattck firecat
Soundcloud: bigattck-firecat
Contact:

Re: How to adjust character sprite?

#2 Post by firecat » Wed Apr 22, 2015 8:58 am

try this one: http://lemmasoft.renai.us/forums/viewto ... =8&t=29376

i used

Code: Select all

show image:
align (#.#, #.#)
to move my sprites
Image


Image


special thanks to nantoka.main.jp and iichan_lolbot

User avatar
Riverbird
Newbie
Posts: 21
Joined: Wed Feb 11, 2015 2:41 pm
Deviantart: RiverbirdAlpha
Contact:

Re: How to adjust character sprite?

#3 Post by Riverbird » Wed Apr 22, 2015 11:24 am

The bit of the documentation you want is here: http://www.renpy.org/doc/html/style_pro ... properties

XPos and YPos are coordinates in pixels from the top left of the screen, to the ANCHOR of the image.
XAnchor and YAnchor set the coordinates of the anchor from the top left of the image.

If you set YAnchor to the height of the image, then the Ypos to the (screen height - height of the text box), you'll have her in the right place. (Assuming the textbox is of fixed size.)
You can also set these numbers proportionately by using non-integer values: setting yanchor to 1.0 makes it at the bottom of the image, 0.5 would be half way down and so forth.

Post Reply

Who is online

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