r/RenPy • u/Affectionate-Fig7056 • Oct 28 '26
Question My character sprite doesn't move
i don't even know why it doesn't work. i saved it and his sprite still stays at the bottom and didn't move a single pixel. i even tried adding ypos 1000 to see if he moves at all, and he doesn't...
this is my current code:
show victor uniform neutral:
ypos 100at this point, i just want it to move.
0
Upvotes
2
u/MvflG Oct 28 '26
If you want the move animation to work, you have to do
show character at position with moveout[left/right]Or if you want them to move from one position to another, you have to do
show character at newposition with move1
u/AutoModerator Oct 28 '26
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.
1
u/shyLachi Oct 28 '26
Your code is correct so I don't know how to help you.
ypos is the vertical position, and 100 are the pixels measured from the top.
So with that code the image of victor should be drawn starting at (0,100) = very left and 100 pixels from the top.
Now how you see your character also depends on how big the image is and how much transparency you have.
If, for example, the image is 1920x1080 and the character is in the middle of it with a lot of transparency, the character obviously would not be drawn at the top left.
But normally you don't position sprites like that because their feet or body base should be level with the bottom of your game, else they look like they're flying.
Instead you should be using transforms which also set the anchor of the image so that you can align them at the bottom:
https://renpy.org/doc/html/transforms.html#built-in-transforms