Newbie question about moving morphs programmatically
Anders Conradi
beque at telia.com
Sun Sep 26 01:21:46 UTC 2004
On lördag, sep 25, 2004, at 22:30 Europe/Stockholm, Josh Gargus wrote:
> In that case, try
>
> step
> | morphToMove |
>
> morphToMove := self isFlexed ifTrue: [self owner] ifFalse: [self].
> morphToMove center: morphToMove center + (self localVelocity * (self
> stepTime * 0.001))
>
>
>
> Explanation:
> Rotated/scaled morphs are wrapped in a FlexMorph in order to use
> BitBlt to transform the pixels. No one
> likes this, and it will go away with Tweak/Croquet.
>
> Joshua
>
And on lördag, sep 25, 2004, at 22:34 Europe/Stockholm, Josh Gargus
wrote:
> Oops, I meant TransformationMorph.
Thank you! This solved it. The only thing I had to change was to use
the straight velocity instead of the localVelocity.
Anders
More information about the Squeak-dev
mailing list
|