Trouble w/ Getting MoveinLeft Transition to work

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
sasquatchii
Miko-Class Veteran
Posts: 552
Joined: Fri Jul 04, 2014 7:48 am
Completed: A Day in the Life of a Slice of Bread
Deviantart: sasquatchix
Soundcloud: sasquatchii
itch: sasquatchii
Location: South Carolina
Contact:

Trouble w/ Getting MoveinLeft Transition to work

#1 Post by sasquatchii »

Hello! I am working on a game, and would like to have this image:

Image

slide in from the left at a certain point in my game, and end up on the center of the screen, like this:

Image

However - the way it is right now, one moment the screen is blank, and then the earth image just appears right at the center, without sliding in. Does someone know the proper code to add in order to make the earth slide in from the left of the screen? I think it would be nicer to have that transition rather than it just suddenly appearing. I tried using easeinleft, but that doesn't seem to be working.

Here is the code I am using for now:

Code: Select all

    laika "There's no one else here."
    
    show earthwindow at Positioncenter 
    with easeinleft
    
    laika "All I can see is the small window in front of me."
    laika "Outside the window is a big blue ball."
Any help or ideas are greatly appreciated!
ImageImage

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Trouble w/ Getting MoveinLeft Transition to work

#2 Post by Per K Grok »

You could do

Code: Select all

show earthwindow:
        xalign -0.3
        yalign 0.5
        easein 3.0 xalign 0.5

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]