Problem in Morph translation
Ned Konz
ned at bike-nomad.com
Tue Jul 23 16:31:49 UTC 2002
On Tuesday 23 July 2002 05:34 am, Roland Bertuli wrote:
> Hi,
> I am novice in Squeak, and i have a problem to translate Morph
> I want to rotate a Morph and translate it forward. But it doesn't
> work. In this exemple, the Morph has been rotate of 90 degrees, but
> it goes on the right side, why?
Because you're moving by 5 pixels every second in the same direction.
By calling heading: 90 you set the absolute heading; this will only
rotate the morph by 90 degrees the first step. From then on the 5
pixel move will make it go further to the right.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|