Move 2 characters at once from opposite sides

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
User avatar
darkrchaos
Regular
Posts: 28
Joined: Wed Jan 28, 2015 6:18 pm
Completed: A Few
Projects: Moe Wars: Crimson Samon
Deviantart: darkrchaos
Contact:

Move 2 characters at once from opposite sides

#1 Post by darkrchaos » Sat Jul 02, 2016 12:01 am

I'm trying to have two characters walk in from opposite sides at the same time, but I can't figure out how to do so.

show nicole down2 at left with moveinleft
show hannah normal2 at right with moveinright

jw2pfd
Regular
Posts: 87
Joined: Tue Sep 18, 2012 9:55 pm
Location: DFW, TX, USA
Contact:

Re: Move 2 characters at once from opposite sides

#2 Post by jw2pfd » Sat Jul 02, 2016 5:03 am

Try this:

Code: Select all

    show nicole down2 at left:
        xoffset -300            #value can be decreased to push the character further off the screen to the left
        easein 0.5 xoffset 0
        
    show hannah normal2 at right:
        xoffset 300             #value can be increased to push the character further off the screen to the right
        easein 0.5 xoffset 0
    
    #the rest of this code is sort of optional
    with Pause(0.5)
    
    show nicole down2 at left:
        xoffset 0
    show hannah normal2 at right:
        xoffset 0
    with None
The values that I chose for xoffset may not guarantee that your characters are offscreen at the start, but you can change the starting xoffset values if needed. There are other values you can change to make things slower/faster, but try this code first and see if it's what you expect. There could totally be an easier and less complicated way to do this, but I don't know another way off the top of my head. There are definitely other ways to do this using ATL - https://www.renpy.org/doc/html/atl.html

User avatar
darkrchaos
Regular
Posts: 28
Joined: Wed Jan 28, 2015 6:18 pm
Completed: A Few
Projects: Moe Wars: Crimson Samon
Deviantart: darkrchaos
Contact:

Re: Move 2 characters at once from opposite sides

#3 Post by darkrchaos » Sun Aug 07, 2016 8:26 pm

Hmm... I have idea what that means. But I'll figure it out later. Right now my visual novel is only a rough draft.

Post Reply

Who is online

Users browsing this forum: enaielei