A couple of EToys questions

James Howe jwh at allencreek.com
Mon Mar 26 22:34:22 UTC 2001


I have a couple of questions concerning EToys.  First, when you create a 
sketch morph, is there a way to change the heading of the morph without 
changing the orientation of the morph itself?  My son was using Squeak and 
drew a car.  He drew it horizontally, i.e a side view of the car.  We then 
hooked the car up to a joystick and were surprised (initially) that the car 
went "up" when we expected it to go "forward".  Of course, the reason it 
went up was because it's heading was initially set to 0.  Once we 
identified the problem, I wanted to somehow change the heading to be 90 
without having the graphic rotate as well, however I didn't find a way to 
do this.  Is there a simple way to do this from either a menu option or 
from the viewer framework?

The other question I have concerns the use of the keyboard within 
EToys.  One of the things we wanted to do was create a way to control our 
car from the keyboard.  For example the left arrow might make the car go 
forward and the right arrow might make it go backward.  Alternatively, some 
keyboard character might make the car go forward while we use a steering 
wheel sketch morph to turn the car.  Is there some way to use keyboard 
input from within a player script?

Thanks.





More information about the Squeak-dev mailing list