Image show from down to Up

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
Gopi
Newbie
Posts: 7
Joined: Thu May 14, 2020 10:56 pm
Contact:

Image show from down to Up

#1 Post by Gopi » Tue Jun 09, 2020 10:52 pm

Hello everyone I'm new to Ren'Py coding, I want to add some effect in my game. Soo in my game I like to add like this
The image of a character to show or move from down to up (show or move from legs to up full character). I don't know about coding of pandown to up . Soo will you help me how to make it.

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: Image show from down to Up

#2 Post by Per K Grok » Wed Jun 10, 2020 12:52 am

Gopi wrote:
Tue Jun 09, 2020 10:52 pm
Hello everyone I'm new to Ren'Py coding, I want to add some effect in my game. Soo in my game I like to add like this
The image of a character to show or move from down to up (show or move from legs to up full character). I don't know about coding of pandown to up . Soo will you help me how to make it.
One thing you could do is to move the sprite.

Code: Select all

    show yoursprit:
        pos (200, 400)
        linear 2.0 ypos 200
With this code the sprite (yoursprite) starts at a position 200 pixels from the left side of the game screen and 400 pixels from the top side of the game screen.

It will then move with a linear move to a position 200 pixels from the top of the game screen. The move will take 2.0 seconds.

Linear means that the sprite will move with the same speed from start to end. There are different moves where the sprite might speed up or slow down during different parts of the move.

There are a lot of different effects you can use. You should read up in the documentation https://www.renpy.org/doc/html/index.html on transitions, transforms and animation and transfomation language (ATL).

Post Reply

Who is online

Users browsing this forum: Google [Bot]