[Solved]Transform problem

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
Sidji972
Regular
Posts: 107
Joined: Tue Jan 21, 2014 8:50 pm
Location: Canada
Contact:

[Solved]Transform problem

#1 Post by Sidji972 »

Hello, I have an issue with a basic transform and to be honest I don't know what I'm doing wrong... Following the tutorial i took this effect :

Code: Select all

transform move_jump:
    xalign 1.0
    linear 5 xalign 0
    xalign 0.0
    linear 5 xalign 1
    repeat
And try to make a simple slide moving animation, but the textbutton stay at a fixed position ( xalign 0) and never move to xalign 1 :

Code: Select all

screen yolo:
    textbutton _("YOLO") action NullAction() at sample

Code: Select all

transform sample:
    xalign 0
    linear 5 xalign 1 rotate 360
    xalign 1
    linear 5 xalign 0 rotate 360
    repeat

Code: Select all

label start:

    show screen yolo
Can someone explain me what I did wrong please ? :o
Last edited by Sidji972 on Sat Nov 28, 2015 6:59 am, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Transform problem

#2 Post by PyTom »

xalign has to be a floating point number. 0 and 1 won't work - you have to use 0.0 and 1.0.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Sidji972
Regular
Posts: 107
Joined: Tue Jan 21, 2014 8:50 pm
Location: Canada
Contact:

Re: Transform problem

#3 Post by Sidji972 »

Thanks you ! :)

Post Reply

Who is online

Users browsing this forum: No registered users