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.
Mole-chan
Veteran
Posts: 333 Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
itch: moleworks
Contact:
#1
Post
by Mole-chan » Sun Apr 12, 2015 7:36 pm
Hello,
I am wondering how one would pass ATL positions into a portion of a LiveComposite displayable instead of X,Y coordinates.
Currently, I am trying this. But it throws a 'TypeError: 'ATLTransform' object is not iterable' error.
Code: Select all
image cadfael little_smile = LiveComposite((452, 720),
(0, 0), "cadfael_base normal",
cad_anim_default, "cadfael_eyes normal",
cad_anim_default, "cadfael_mouth smile")
Including the animation in the images and putting in coordinates to satisfy LiveComposite also doesn't work. It just overrides the ATL.
So I'm just wondering if there is something I am missing.
Thank you.
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 » Wed Apr 15, 2015 11:03 am
You can't do it that way. What you have to do is to create a Fixed and position the stuff inside it.
Code: Select all
image cadfael little_smile = Fixed(
"cadfael_base normal",
At("cadfael_eyes normal", cad_anim_default),
At("cadfael_mouth smile", cat_anim_default),
xysize=(452, 720))
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
Mole-chan
Veteran
Posts: 333 Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
itch: moleworks
Contact:
#3
Post
by Mole-chan » Wed Apr 15, 2015 1:33 pm
PyTom wrote: You can't do it that way. What you have to do is to create a Fixed and position the stuff inside it.
Code: Select all
image cadfael little_smile = Fixed(
"cadfael_base normal",
At("cadfael_eyes normal", cad_anim_default),
At("cadfael_mouth smile", cat_anim_default),
xysize=(452, 720))
I figured I could't do it that way from the error, I just wasn't sure what the proper way was.
Now I know!
Thank you c:
Only problem is...the timing is off. The transforms use animation time as they are supposed to precisely match the animation of the body.
This doesn't do that. If I go forward and back, the timing gets disrupted.
Mole-chan
Veteran
Posts: 333 Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
itch: moleworks
Contact:
#4
Post
by Mole-chan » Mon Apr 20, 2015 11:32 pm
Hello? ^^;; I'm still having the animation timing issue, and would really appreciate some input.
Users browsing this forum: Bing [Bot] , Google [Bot] , piinkpuddiin