loop background

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
saru
Regular
Posts: 27
Joined: Mon Apr 18, 2005 7:05 am
Location: Maeklong , Thailand
Contact:

loop background

#1 Post by saru »

from "Moonlight Walks title" it slide down

ummm...

can i set background is loop ?

i want make walk seen :)

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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:

Re: loop background

#2 Post by PyTom »

saru wrote:from "Moonlight Walks title" it slide down

ummm...

can i set background is loop ?

i want make walk seen :)
Right now, you cannot make a Move or a Pan loop. I will add the ability to do this to 4.8.3. I'll probably also unify them, and add the ability for the user to write a custom function giving the motion to be performed.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

saru
Regular
Posts: 27
Joined: Mon Apr 18, 2005 7:05 am
Location: Maeklong , Thailand
Contact:

#3 Post by saru »

all right

i will wait for it :D

saru
Regular
Posts: 27
Joined: Mon Apr 18, 2005 7:05 am
Location: Maeklong , Thailand
Contact:

#4 Post by saru »

now i can pan background :D
scene outroom at Pan((640, 0), (240, 0), 9.0)
but it stop at right

can i set it loop nonstop? ( for made walk scene )

thx :D

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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:

#5 Post by PyTom »

saru wrote:now i can pan background :D
scene outroom at Pan((640, 0), (240, 0), 9.0)
but it stop at right

can i set it loop nonstop? ( for made walk scene )

thx :D
Yes, you can, as of the latest release or so. What you will need to do is to add a repeat=True argument to Pan, using code like:

Code: Select all

scene outroom at Pan((640, 0), (0, 0), 9.0, repeat=True))
If you want the pan to be smooth, you'll need to also repeat the screen at the edge of the panned area, so that you don't get jumps.

The arguments you give to pan are a bit weird, since you're moving from 640 to 240. Normally, you'd move all the way to 0.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]