Arrow Keys to control movement of a Morph
karl.ramberg at chello.se
Wed Jul 7 06:44:23 UTC 2004
Milan Zimmermann wrote:
> Using your changeset (thanks again) I am playing with moving a Morph, in eToys
> using: "MyEllips's's keyHit a", which I added in a script.
> I do not know how to replace the "a" with another Character using "drag" so I
> revert to textual form and have, as a first test, something like
> (self wasCharacterHit: Character arrowLeft)
> ifTrue: [self forward: 5. ].
> (self wasCharacterHit: Character arrowRight)
> ifTrue: [self forward: -5].
> And that works nicely.
> Just for curiosity, is there some way to drag Characters from somewhere in
> eToy's, something like a "Character table"
There is not one I know of. You can replace the characters by clicking
so they get hi-lighted and then hitting the key you want. But keys
characters do not work at the moment.Maybe a little hacking in the input
field could resolve invisible chars to something like 'Character
and make the tile look right.
More information about the Squeak-dev