[Newbies] moving objects on screen on synchronous mode

Bert Freudenberg bert at freudenbergs.de
Fri Mar 25 14:18:33 UTC 2011


On 25.03.2011, at 14:31, Ton wrote:

> Hi all,
> I have several objects moving and they must refresh their position on screen on synchronous mode.
> Is there is any way to make something lika a display buffer?
> I mean, to perform the positioning of objects without changing what you see on the display, and finally, refresh the display when everything is ready for viewing.

That's how Morphic works in general. You change object's positions in their "step" methods. Only when all step methods were executed, the main loop disables screen updates, redraws the changed objects, then enables screen updates again (see senders of deferUpdates:).

- Bert -


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110325/8b843c6e/attachment.htm


More information about the Beginners mailing list