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.
Sidji972
Regular
Posts: 107 Joined: Tue Jan 21, 2014 8:50 pm
Location: Canada
Contact:
#1
Post
by Sidji972 » Fri Nov 27, 2015 7:48 pm
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
Can someone explain me what I did wrong please ?
Last edited by
Sidji972 on Sat Nov 28, 2015 6:59 am, edited 1 time in total.
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:
#2
Post
by PyTom » Sat Nov 28, 2015 1:26 am
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:
#3
Post
by Sidji972 » Sat Nov 28, 2015 6:59 am
Thanks you !
Users browsing this forum: Ahrefs [Bot]