Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 25, 2013 2:54 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Simultaneous Transitions
PostPosted: Mon Mar 12, 2012 3:25 am 
Regular
User avatar

Joined: Tue Mar 06, 2012 1:47 am
Posts: 79
Is it possible to have two transitions happen at the same time? What I've been trying to do is slide an image offscreen (using the slideaway transitions) while sliding a new image in to take its place (using the regular slide transitions), so the whole thing just looks like one big transition instead of two separate ones. I'm not very familiar with Ren'Py yet though, so all my tinkering has gone nowhere. Would it be possible to do this with MoveTransition? Or perhaps ComposeTransition?


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 3:31 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
http://www.renpy.org/wiki/renpy/doc/ref ... Transition

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 3:53 am 
Regular
User avatar

Joined: Tue Mar 06, 2012 1:47 am
Posts: 79
Ah...thanks, but that wasn't quite what I meant. I probably should've worded that better. What I meant was to make it look like the two images were connected while they were sliding, rather than have the blank screen between them. So...like the two images were really one long image, and I wanted to shift the screen to one half from the other.


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 9:50 am 
Arbiter of the Internets
User avatar

Joined: Tue Aug 26, 2003 4:37 am
Posts: 3345
Completed: Cute Knight, Fatal Hearts, Date Warp, Magical Diary, Long Live The Queen, The Royal Trap
Projects: Black Closet
Organization: Hanako Games
The simple lazy-coder way to do it would be to actually MAKE one long image of the two of them, and slide over to the next... :)

_________________
Hanako Games


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 10:29 am 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 941
If I understood correct, you need two images to be moved at the same time. One of the ways to do so
Code:
label start:
    show "pic_1":
        xalign 0.5
    show "pic_2":
        xalign 1.0 xanchor 0.0        # pic_2 will be placed at right offscreen
    with None
    $ renpy.pause(1.0)

    show "pic_1":
        xalign 0.0 xanchor 1.0        # pic_1 will be placed at left offscreen
    show "pic_2":
        xalign 0.5
    with move                         # will change positions of all images above it


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 1:13 pm 
Regular
User avatar

Joined: Tue Mar 06, 2012 1:47 am
Posts: 79
papillon wrote:
The simple lazy-coder way to do it would be to actually MAKE one long image of the two of them, and slide over to the next... :)


Haha, it certainly sounds lazier, but I'm trying to avoid that at all costs...if you have one screen that can shift in four directions and 50+ screens, it wouldn't be such an easy task anymore.

Alex wrote:
If I understood correct, you need two images to be moved at the same time. One of the ways to do so
Code:
label start:
 show "pic_1":
 xalign 0.5
 show "pic_2":
 xalign 1.0 xanchor 0.0 # pic_2 will be placed at right offscreen
 with None
 $ renpy.pause(1.0)

 show "pic_1":
 xalign 0.0 xanchor 1.0 # pic_1 will be placed at left offscreen
 show "pic_2":
 xalign 0.5
 with move # will change positions of all images above it


I...forgot about regular move transitions. How did I manage that?? Anyways, I can't see how this is happening, but the first image appears to get completely skipped over unless I put a pause in, but it disappears during the move transitions (and not as in "falls off the screen" disappear, that would be a good thing). I'll try fiddling with it some more though, thanks!

EDIT: Nevermind, it's working now! Thanks a ton!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group