Show and renpy.show positioned differently

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
nananame
Regular
Posts: 72
Joined: Fri Oct 13, 2017 1:40 pm
Contact:

Show and renpy.show positioned differently

#1 Post by nananame »

I'm doing a very simple test and can't figure out why this is...
If I have:

Code: Select all

show rightchar:
    xpos 1200
    ypos 350
The character shows up at one location.
If I replace that code with:

Code: Select all

$renpy.show ('rightchar', at_list=[Position(xpos=1200,ypos=350)])
The character shows up much higher and to the left.

Question is - why?
Is this expected behaviour? Is there something I should do to make it act the same?
Or should I just expect the same discrepancy and compensate for it?

nananame
Regular
Posts: 72
Joined: Fri Oct 13, 2017 1:40 pm
Contact:

Re: Show and renpy.show positioned differently

#2 Post by nananame »

Facepalm!
I figured it out...the anchor is set differently. So to fix it, I simply need to add xanchor and yanchor 1.

Post Reply

Who is online

Users browsing this forum: No registered users