Character's Image Location

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
boshibaro
Newbie
Posts: 7
Joined: Thu Sep 06, 2007 12:28 pm
Contact:

Character's Image Location

#1 Post by boshibaro »

How do I determine the location (the coordinates on the game screen) of the character image?

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: Character's Image Location

#2 Post by DaFool »

Usually, if your game has a set resolution, you follow that resolution as a guide in making the png image.

For example, your game is 800x600 resolution. Your character sprite will be 600 pixels tall, prepositioned already. The actual width will be around 250-500 pixels depending on what you draw.

Then you can say

Code: Select all

show mycharacter at left
show my character at right
For specific positioning, use "at Position(..." which is referenced in the documentation.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], munni