[HELP] Bouncing ball problem

Adam Bloom admanb at hotmail.com
Fri Oct 6 19:28:39 UTC 2000


This may seem like a elementary problem to most of you, however its not to 
me, I'm working with the "TestMorph" that is created in John Maloney's 
Morphic tutorial, I'm trying to make it bounce five times, however it just 
bounces on forever, heres the code

#TestMorph Method
startAnimation
    path := OrderedCOllection new.
    0 to: 5 do: "This is the part that is supposed to make it bounce 5 
times"
    [:h | 0 to: 29 do: [:i | path add: self position + (0@(i squared / 
5.0)))]. "This makes it go"
    path := path, path reversed]. "This makes it go up and down"
    self startStepping.

Any help?

Adam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





More information about the Squeak-dev mailing list