[Newbies] isStepping question

Christine Wolfe cwdw01 at earthlink.net
Sat Nov 7 13:18:44 UTC 2009

If I have a morph that is stepping through some process I know I can test
for whether or not it is still stepping by using the isStepping method.
But, how to I put this into a loop so that the next instruction doesn't
start until the stepping is done.


Here is my mouseDown code.  I want to put something in before the last
instruction so it doesn't execute until isStepping becomes false.


mouseDown: evt

path := OrderedCollection new.

0 to: 9 do: [:i | path add: self position + (0@(10 * i))].

path := path, path reversed.

self startStepping.


self owner moveTheGameBall.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20091107/6e6fad75/attachment.htm

More information about the Beginners mailing list