value based transform

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
dragonlord3989
Regular
Posts: 30
Joined: Tue Nov 17, 2015 1:34 pm
Contact:

value based transform

#1 Post by dragonlord3989 »

Edit: Finally fixed it my self :P
Last edited by dragonlord3989 on Mon Aug 14, 2017 2:58 am, edited 1 time in total.

dragonlord3989
Regular
Posts: 30
Joined: Tue Nov 17, 2015 1:34 pm
Contact:

Re: value based transform

#2 Post by dragonlord3989 »

Bump

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: value based transform

#3 Post by xavimat »

Maybe we need more context. There are different ways of doing this, you have a screen with timer that changes some variables. It's possible to define transforms and pass values to them too. To reset the position of the image, you could simply "show" again the image with position properties.

It's possible without screens:
an image to go from the left of the screen to the center, but after the timer counts down and it jumps back to the test label it resets the image location

Code: Select all

image img = Solid("#fcc", xysize=(100, 100))
label start:
    show img:
        xalign 0.0
        linear 4 xalign 1.0
    pause 4
    show img:
        xalign 0.0
    "Bla"
    return
I imagine this is not what you want, because you seem to need a timer and a screen, but I don't know why. Please explain a little bit what do you really need.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

dragonlord3989
Regular
Posts: 30
Joined: Tue Nov 17, 2015 1:34 pm
Contact:

Re: value based transform

#4 Post by dragonlord3989 »

Solved

Post Reply

Who is online

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