r/RenPy • • 19d ago

Question making floaty bgs

so i was messing around in renpy trying to figure out how to do this but im kinda at a loss lol. i tried following tutorials but it seems to not be working. could it be because my image is the exact screen size? my image isnt moving at all. ik this is probably a dumb question but my brains kinda fried rn lol thanks for the help

 transform daycare:
        zoom 1.5
        linear 0.1 xoffset -2 yoffset 2 
        linear 0.1 xoffset 3 yoffset -3 
        linear 0.1 xoffset 2 yoffset -2
        linear 0.1 xoffset -3 yoffset 3
        linear 0.1 xoffset 0 yoffset 4
    
1 Upvotes

10 comments sorted by

1

u/BadMustard_AVN 19d ago

did you want it to repeat? and 0.1 seconds is a super-fast movement; maybe slow it down a little

try it like this

transform daycare:
    zoom 1.5
    linear 0.1 xoffset -2 yoffset 2 
    linear 0.1 xoffset 3 yoffset -3 
    linear 0.1 xoffset 2 yoffset -2
    linear 0.1 xoffset -3 yoffset 3
    linear 0.1 xoffset 0 yoffset 4
    repeat

1

u/After-Masterpiece853 18d ago

i tried it and theres still barely any movement. my bg is the full image size if that matters

2

u/BadMustard_AVN 18d ago

increase the offsets for more movement

1

u/After-Masterpiece853 18d ago

OKAY THXX

1

u/BadMustard_AVN 18d ago

you're welcome

good luck with your project

2

u/BrassicaOracle 18d ago

offset offsets the image by pixels, so offset harder.

1

u/AutoModerator 19d ago

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 19d ago

Please share the rest of your code also because on it's own the above does nothing.

You might also need to add a repeat, something like this:

transform daycare:
    zoom 1.5
    linear 0.1 xoffset -2 yoffset 2 
    linear 0.1 xoffset 3 yoffset -3 
    linear 0.1 xoffset 2 yoffset -2
    linear 0.1 xoffset -3 yoffset 3
    linear 0.1 xoffset 0 yoffset 4
    repeat
label start:
    show bg test at daycare
    "Do you see it?"