[squeak-dev] moving a Morph

hannes.hirzel hannes.hirzel at gmail.com
Mon Aug 24 11:01:37 UTC 2009


Igor Stasenko wrote:
> 2009/8/13 kemal asad-syed <kasadsyed at gmail.com>:
>   
>> I am trying to figure how can i move a Morph thru code.
>> something like:
>> a:= Morph new .
>> a openInWorld .
>> a move left : 100.
>> a move up : 50.
>> I haven't yet found how to get that to work. anyone ?
>> thanks.
>> Kemal
>>
>>     
> morph position: 100 at 50
>
>   

Actually

a := RectangleMorph new openInWorld.
a position: a position + (100 at 0)      "moves the morph 100 pixels to the 
right".





More information about the Squeak-dev mailing list