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.
-
fullmontis
- Regular
- Posts: 129
- Joined: Sun May 05, 2013 8:03 am
- Deviantart: fullmontis
- itch: fullmontis
- Location: Italy
-
Contact:
#1
Post
by fullmontis » Wed Nov 07, 2018 7:14 am
I have a transform that works as follows:
Code: Select all
transform breathing:
subpixel True
ypos 720
yanchor 1.0
ease 0.4 ypos 723
ease 1.0 ypos 720
repeat
I notice that the transform is choppy, meaning that you can see the sprite jump from one pixel to another when rendered. Since I used subpixel rendering I thought this would go away, but it is still there.
Is there a solution to make a transform like this more fluid? Thanks

-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Sun Nov 11, 2018 12:02 am
Write:
Code: Select all
transform breathing:
subpixel True
ypos absolute(720)
yanchor 1.0
ease 0.4 ypos absolute(723)
ease 1.0 ypos absolute(720)
repeat
If you give it an integer argument, you're only going to get integers. If you give it absolute, you'll get pixel floats, which are needed for such small movements.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
fullmontis
- Regular
- Posts: 129
- Joined: Sun May 05, 2013 8:03 am
- Deviantart: fullmontis
- itch: fullmontis
- Location: Italy
-
Contact:
#3
Post
by fullmontis » Wed Nov 14, 2018 10:06 am
Thank you Tom, works perfectly! I didn't know it was possible to pass floats to position arguments, this is really handy

Users browsing this forum: Bing [Bot], Google [Bot], OddTillTheEnd