Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

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

[Thread Prev] <

To: MicroWorlds Forum <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: MIA, Ask an Expert: tree walking
From: Rotem Kimchi <rotemk2@xxxxxxxxxxxxxxxx>
Date: Thu, 19 Jan 2012 22:06:16 +0200

Hi
I think this is what you meant
The main procedure controls the tree movements according to the different
state
The states can be canged in a push of a button (I choose 1 or 0 but you can
do as many option as you like)
Didn't check it though, but this is the main idea

to main
tree, setpos[0,0]
tree, seth 180
ifelse :s1 = 0
[ tree, fd 50 lt 90 fd 100 seth 180
ifelse :s2 = 0 ... ]
[ tree, fd 50 rt 90 fd 100 seth 180 ]

to state.1
make "state_1 (get "state1 "text)
ifelse :state_1 = 0
[ make "s1 1
set "state1 "text 1
]
[ make "s1 0
set "state1 "text 0
]
end

to state.2
make "state_2(get "state2 "text)
ifelse :state_2= 0
[ make "s2 1
set "state2 "text 1
]
[ make "s2 0
set "state2 "text 0
]
end

to state.3
make "state_3(get "state3 "text)
ifelse :state_3= 0
[ make "s3 1
set "state3 "text 1
]
[ make "s3 0
set "state3 "text 0
]
end


2012/1/19 <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>

> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
>
> from: venkatesan <venkatmajestic08@xxxxxxxxx>
> date: Wed Jan 18 19:44:27 2012
> platform: PC
> version: MicroWorlds 2.03
>
> how do i make a turtle walking in tree
>
>

  • Previous by thread: MIA, Ask an Expert: tree walking

  • 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