On May 15, 2013, at 10:34 PM, Eric Clack wrote: > Hi Stephane and Jannik, > Well I don't hate the code (yet ;-) So perhaps I'll have a play with it a bit > more and see if I can get something that works well, and fits with plans for > Pharo3.0. > > Cheers, > -Eric.
Would it be possible to translate it to something like alias spaceHandler When space pressed [ set t1 true] When flag clicked [ set t1 false install spaceHandler Loop forever [ move 5 steps turn 5 degrees if t1 [ Stamp the sprite on the screen set t1 false ] ] uninstall spaceHandler ] In general, it should be possible to rewrite polling code to event-driven with some use of temporaries. Cheers, Henry