Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team
How do I make a turtle change shape while it is moving?
Method 1:   We often include a wait command before (or after) switching shapes, or else the two alternating shapes become a blur (as you can see when speed is set to 10 in the project below). To change shapes use setshape. See Animate Me 3.

to bounce
seth 0
sety -70
forever [setsh 7
        fd 100 wait 10 - speed
        setsh 6
        bk 100 wait 10 - speed]
end

to walk
seth 90
sety -40
setsh "walker1
fd speed * 2 wait 10 - speed
setsh "walker2
fd speed * 2 wait 10 - speed
end
You can use the same speed slider as the input to two primitives – in this case, fd and wait. Here, we multiply speed by 2 to increase the forward distance.

« Previous
Menu
Next »


© copyright 2001 - 2008  OpenWorld Learning.   All rights reserved.