[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] tween engines in pygame?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] tween engines in pygame?
- From: René Dudfield <renesd@xxxxxxxxx>
- Date: Thu, 19 Feb 2009 15:06:28 +1100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 18 Feb 2009 23:06:31 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=izUy7uVUF9YwXergYIFPu6S7TH8hDDJUnmRpqiv/X8E=; b=QvDSzv9K287riRhNXKs20OAlGrq+UEIclHLy+DQbObsAp8brBWQScXWBVoVwy5va2n vNQDN/pJKEZIZ3RXA6F/AnaHgUmK8AsXg77xScTofGdt86MzwG5pK7RZ8JVbFe3ZWCVy PJ5czZJ9y8eTcyqKk8zFxOuATDB/7mZYZQa94=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=V1bN6JyhBcdj8HaRvrioOAKpBBhCNtH93iglFIkc5X+xCfYDPece/GCv6jjZiZOi1C 5nI1f/XvaurflVnf9Chfvfr++LNlKv9bxeRiXCXxHUkxM7WVd0+d+3ZKAZ9JZfN0I0dq uRyoVwTrQIvus9CxOXGxiH6ESy0KbPO2uxKC8=
- In-reply-to: <200902191156.50065.tg@xxxxxxxxxxxxxxxxxxx>
- References: <200902191156.50065.tg@xxxxxxxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
you can follow the method in this tutorial:
http://www.pygame.org/docs/tut/MoveIt.html
Also this one explains how different interpolators work, for smoothing
in and out:
http://sol.gfxile.net/interpolation/index.html
cheers,
On Thu, Feb 19, 2009 at 2:56 PM, Timothee Groleau
<tg@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello all!
>
> Newcomer here, I just started using both python and pyGame a few days ago,
> please bear with me.
>
> I'm trying to make a math flashcard program for my kids (following the Doman
> method). I can already generate my cards so that's fine but I'm not sure how
> to handle the next steps: improving drawing quality and handling motion.
>
> Firstly, I'm drawing dots using pygame.draw.ellipse, is there any way to
> draw antialiased ellipses in pygame?
>
> Secondly, to represent cards as almost physical cards, I want to animate them
> in and out of the screen. I come from the Actionscript world where I am used
> to tween engines. With these engines, I can let a property of a movieclip (x,
> y, width, etc.) change over time, and specify how the change occurs using
> pluggable easing methods (see.
> http://www.robertpenner.com/easing/easing_demo.html for example). Is there
> such a thing in pygame, and/or it is called something else? I can code some
> animation by hand, but I figured such animation engines must already exist.
>
> Many thanks in advance!
> Tim.
>