Doing two actions simultaneously

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
laneypiercey
Newbie
Posts: 2
Joined: Sat Aug 06, 2016 6:06 pm
Projects: Object of My Affection
Tumblr: itty-bitty-kitty-butts
Contact:

Doing two actions simultaneously

#1 Post by laneypiercey » Sat Aug 06, 2016 6:15 pm

After searching through the forums and doing a ton of Google searches I decided to make an account so I could ask this: how do I make two actions trigger at the same time?

Specifically, I'm trying to do these two together:

Code: Select all

show adrian_close at center with move
show avery at left with move
I want them to move together so it doesn't have Adrian overlap Avery before she moves to the left.

I'm also interested in knowing how to have multiple character images show up on screen/disappear at the same time, if possible.

User avatar
Iylae
Regular
Posts: 73
Joined: Sat Jan 09, 2016 6:57 am
Location: Cornwall, UK
Contact:

Re: Doing two actions simultaneously

#2 Post by Iylae » Sat Aug 06, 2016 8:01 pm

Image
  If we are what we repeatedly do, then good coding is not an act, but a habit

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Doing two actions simultaneously

#3 Post by Donmai » Sat Aug 06, 2016 9:18 pm

laneypiercey wrote:I'm also interested in knowing how to have multiple character images show up on screen/disappear at the same time, if possible.
Just use the same transition for both characters

Code: Select all

show adrian_close at center
show avery at left
with dissolve

Code: Select all

hide adrian_close
hide avery
with dissolve
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
laneypiercey
Newbie
Posts: 2
Joined: Sat Aug 06, 2016 6:06 pm
Projects: Object of My Affection
Tumblr: itty-bitty-kitty-butts
Contact:

Re: Doing two actions simultaneously

#4 Post by laneypiercey » Sun Aug 07, 2016 1:25 am

Iylae wrote:This should help:

viewtopic.php?f=8&t=8193&p=112350#p112350
Donmai wrote:
laneypiercey wrote:I'm also interested in knowing how to have multiple character images show up on screen/disappear at the same time, if possible.
Just use the same transition for both characters

Code: Select all

show adrian_close at center
show avery at left
with dissolve

Code: Select all

hide adrian_close
hide avery
with dissolve
Thank you so much!! Both of these solved my problems ; v;

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]