Project Folders
Teacher Resources
Student Resources
How Do I?
Site Map
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: "MicroWorlds Forum" <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, pjackson@xxxxxxxxxxx
Subject: Re: MIA, Ask an Expert: Key Binding No Key
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Tue, 09 Nov 2010 23:15:27 -0500

from:  <pjackson@xxxxxxxxxxx>
date: Tue Nov  9 20:24:19 2010
platform: PC
version: MicroWorlds 2.03
How do I make a turtle do an animation whilst not in motion, (When no key is pressed an object does an action.), whilst still using the following code:
to paddles
    if :answer = "w [seth 0 fd 8 wait 0.5 ]
    if :answer = "s [seth 180 fd 8 wait 0.5]
    if :answer = "a [seth 270 fd 8 wait 0.5]
    if :answer = "d [seth 90 fd 8 wait 0.5]
to getchoice
make "answer readchar

What kind of animation?

You can create simple animations by simply switching back and forth between two or more shapes:

forever [setsh 1 wait 10 setsh 2 wait 10]

OpenWorld Learning

  • Previous by thread: MIA, Ask an Expert: Key Binding No Key
  • Next by thread: MIA, Ask an Expert: create a red flag and blue pole

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.

    © copyright 2001 - 2008