Simultaneously fade-in and move a CG?

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
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Simultaneously fade-in and move a CG?

#1 Post by Obscura »

Here's some code for slowly fading in a CG:

Code: Select all

show cg:
    alpha 0.0
    time 2.0
    linear 2.0 alpha.1.0
    size (1280,720) crop (0,0,1280,720)
and here's some code for moving around a CG:

Code: Select all

show cg:
    size (1280,720) crop (640,0,1280,720)
    easeout 15.0 crop (0,360, 1280, 720)
pause 10.0  
How do I slowly fade-in and move this CG at the same time?

Any help appreciated, thanks!
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
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: Simultaneously fade-in and move a CG?

#2 Post by Donmai »

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

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Simultaneously fade-in and move a CG?

#3 Post by Obscura »

*slaps forehead* I totally forgot about that command. THANK YOU SO MUCH, DONMAI!
Coming Out On Top - An Adult Gay Dating Sim
website

Post Reply

Who is online

Users browsing this forum: Kocker