Page 1 of 1

Move 2 characters at once from opposite sides

Posted: Sat Jul 02, 2016 12:01 am
by darkrchaos
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

Re: Move 2 characters at once from opposite sides

Posted: Sat Jul 02, 2016 5:03 am
by jw2pfd
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

Re: Move 2 characters at once from opposite sides

Posted: Sun Aug 07, 2016 8:26 pm
by darkrchaos
Hmm... I have idea what that means. But I'll figure it out later. Right now my visual novel is only a rough draft.