Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-03 Thread Thomas Ibbotson
2009/12/3 Bill Coderre b...@mac.com Now we have laptops and GUIs, and Alan and conspirators have been inventing new programming systems with Squeak (a newer version of Smalltalk) as their assembly language core. Etoys is one of them, and if you haven't tried it, you should.[1] [1]

Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-02 Thread inigo delgado
By the way: Pixels are integers, so don't make operations with them, make a variables like: varX = 0.0 varY = 0.0 And make operations using them or you will lost the decimals (because x and y in the image are integers: pixels). This is visible when you do a bouncing animation, the animation

Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-02 Thread Bill Coderre
On Nov 30, 2009, at 11:13 AM, Ian Mallett wrote: g = -9.8m*s^-2. If you want to learn about gravity, watch this video: http://video.google.com/videoplay?docid=-9055536763288165825 -- but be careful or you might get inspired. I say that because this video is an instance of The Canonical Alan

Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-02 Thread leo kirotawa
This site has some samples about gravity. http://www.geometrian.com/Tutorials.php cheers. On Wed, Dec 2, 2009 at 10:09 PM, Bill Coderre b...@mac.com wrote: On Nov 30, 2009, at 11:13 AM, Ian Mallett wrote: g = -9.8m*s^-2. If you want to learn about gravity, watch this video:

Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-01 Thread Rob
Thanks guys, your replies were helpful. The physics links in particular were very good for refreshing my memory on the equations. On 11/30/09, R. Alan Monroe amon...@columbus.rr.com wrote: I've been trying to get a sprite (the ball) to fall from the top of the screen with realistic gravity. I

[pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread Rob
I've been trying to get a sprite (the ball) to fall from the top of the screen with realistic gravity. I did attempt it, however it's not so great so I won't post it here. I wasn't quite sure how to do it, I had it dropping per frame instead of per second, which meant it went about 60x too fast.

Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread René Dudfield
On Mon, Nov 30, 2009 at 11:37 AM, Rob rob...@gmail.com wrote: I've been trying to get a sprite (the ball) to fall from the top of the screen with realistic gravity. I did attempt it, however it's not so great so I won't post it here. I wasn't quite sure how to do it, I had it dropping per

Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread Rob
I have been reading the tutorials but never thought to look at other people's projects, I will check it out. Thanks. On 11/30/09, René Dudfield ren...@gmail.com wrote: On Mon, Nov 30, 2009 at 11:37 AM, Rob rob...@gmail.com wrote: I've been trying to get a sprite (the ball) to fall from the top

Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread Eric Pavey
On Mon, Nov 30, 2009 at 3:20 AM, René Dudfield ren...@gmail.com wrote: On Mon, Nov 30, 2009 at 11:37 AM, Rob rob...@gmail.com wrote: I've been trying to get a sprite (the ball) to fall from the top of the screen with realistic gravity. I did attempt it, however it's not so great so I won't

Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread Ian Mallett
g = -9.8m*s^-2. Near the surface of Earth, this is usually thought of as a constant. To make your object fall slower, simply decrease the magnitude of this constant. Unless doing something that absolutely must be physically based (like for measuring something), I'd use what looks right.

Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread R. Alan Monroe
I've been trying to get a sprite (the ball) to fall from the top of the screen with realistic gravity. I did attempt it, however it's not so great so I won't post it here. These might help: http://hyperphysics.phy-astr.gsu.edu/hbase/traj.html