Move() and cubic functions

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.
Message
Author
User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#31 Post by monele » Sat Aug 19, 2006 2:35 pm

The thingie has been sent through YouSendIt... Tell me if you didn't get the file ^^;.. or better yet :

http://www.yousendit.com/transfer.php?a ... fm@evc.net


In the mean time, I've been playing around with Zoom and did things like a filtered version of it (though I probably won't use it much given the slowdown when the picture reaches a certain size), a "factor scale" version of it (defining a rectangle was difficult for me ^^;...) and finally an eased version of it (yay for smooth start and stop ^^). I think I'm getting the hang of this except that....

- I couldn't find an obvious way to make Zoom work with fractions of the screen just like Position does.
- If I use my new Zoom-with-ease function, and I quit (at anytime), I get a crash and--... scratch that, I finally found what the problem was ^^ (was defining image sizes as a float because I was multiplying with a float.. *slaps forehead*)

So yea, all's fine, yay :D

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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:

#32 Post by PyTom » Sat Aug 19, 2006 6:27 pm

I've got the file, just haven't had time to look at it. (I've recently taken on some consulting work which takes some time to accomplish... and then yesterday, the number of support requests coming in were insane.)

I'll look at it after dinner, which should occur shortly.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#33 Post by monele » Sat Aug 19, 2006 7:46 pm

No probs ^^ Been working on other parts of the game in the mean time anyway :). And I realize I don't actively need this MoveTransition thing for now... it's mostly polish ^^.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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:

#34 Post by PyTom » Sat Aug 19, 2006 10:29 pm

Okay, the problem is that Motion, as used in _MoveEase(), is currying. When called the first time, it returns a function that, when called the second time, returns a displayable.

_MoveEaseTransition wants to add real displayables to the layers.

The solution is probably to add the line

Code: Select all

move = move()
Before the line:

Code: Select all

newsl.append((tag, None, anim, move))
I'm looking to add more customizablity to Move, Motion, MoveTransition and the line, in 5.5.5. So it may make sense to wait for that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#35 Post by monele » Sun Aug 20, 2006 7:18 am

Yay, it works :D. Thanks ^.^.

About 5.5.5 : does it mean it will break things in my custom functions ? Or just that I might not need the functions anymore ?
I don't plan to do much animation for now, so I'll probably just see what happens with 5.5.5.

Thanks again ^^

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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:

#36 Post by PyTom » Sun Aug 20, 2006 8:42 am

5.5.5 won't break your functions, but it will probably render them obsolete.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: _ticlock_