I'm still not having any luck with running commands sequentially. I've looked at "batch pen trails" and checked or unchecked it runs the script the same (ie. Forward 5 Turn 5 draws a circle). I'm sure I'm missing something somewhere.
What I would like to accomplish is to draw a landscape in the World that students would create a robot (like the Mars Rovers) to explore. They would write scripts to send to their robots, they would also need scripts running that would sense danger and pause and start appropriate alternate scripts. The terrain could change and the robots would need to be able to adapt, students could then create their own landscapes and challenges for others.
In Microworlds we are able to write scripts and run them sequentially, and that is I suppose what I'm looking for. An example would be to program the turtle to draw a house with a door and window.
Again, I hope I'm not being dense and missing something simple (it wouldn't be the first time) and that this is the appropriate place for this to posed.
Thanks much.
On Mar 24, 2004, at 12:00 PM, squeakland-request@squeakland.org wrote:
At 7:28 PM +0100 3/24/04, Thomas Oeding wrote:
Forward for Steve Gutierrez sjg9360@lausd.k12.ca.us:
I've been following this discussion with interest. I'm very interested in getting sketch morphs to follow sequential commands a la the Lego Brick rather than running Forward 5 and Turn 5 simultaneously, so an object could complete a series of steps and then based on the results fire off a new script. Would this be done with text scripting?
No. As I mentioned, just turn off "batching" in the playfields you want to affect. The world is a playfield and you can turn off batching for your project by:
- getting the world menu
- clicking on "playfield options"
- make sure that "batch pen trails" is set to off.
This can also be done for individual playfields.
Also, it would be good if you could say more specifically what your larger goal is here. There might be a nice way to do it in etoys .... Are you trying to run a maze, etc.?
Cheers,
Alan
On Wednesday 24 March 2004 2:48 pm, Steve wrote:
I'm still not having any luck with running commands sequentially. I've looked at "batch pen trails" and checked or unchecked it runs the script the same (ie. Forward 5 Turn 5 draws a circle). I'm sure I'm missing something somewhere.
What does your script look like?
What do you expect it to do?
If you make a script that just has
mySketch forward: 5 mySketch turn: 5
and start it ticking, it will (of course) make a circle (or rather a polygon with 360/5 sides each 5 long).
squeakland@lists.squeakfoundation.org