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] [Thread Next]

Subject: MIA, Ask an Expert Question
From: mwforum@xxxxxxxxxxxxxxxxxx (Daniel Ajoy)
Date: Tue, 16 Sep 2003 19:52:52 -0500

On 14 Sep 2003 at 23:26, Ask an Expert - Question wrote:

> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
> 
> from: "Ashleigh" evildreamlord@xxxxxxxxxxx
> date: Sun, 14 Sep 2003 22:29:55 -0600
> 
> I want to make a game where a turtle is crossing a road, with 'obsatcles' 
> (turtles with 
> different shapes, such as horses and such). I want the turtle to move only 
> when I press the 
> keys, not moving forward constantly. How do I program that? 

Hi Ashleigh,

Please look here:

How do I steer the turtle with keyboard keys? 
http://mia.openworldlearning.org/howdoi/swk.htm

specially "Method 2":
> We can vary these procedures so that the arrow keys cause 
> the turtle to turn and move forward....


> I also want to make it so that 
> if the turtle hits another
> turtle, then a text box will come up telling the player that they've lost 
> the game. 


Maybe this can guide you:

How do I make a turtle react when it comes upon something?
http://mia.openworldlearning.org/howdoi/lcc.htm

the specific command to make an announcement is "announce":
For example, type this in the Command Center:

announce [Hi there]


> I also 
> want a text box to come up if the turtle crosses a particular coordinate. 

For this, please look here:

How can I use x and y coordinates to guide a turtle?
http://mia.openworldlearning.org/howdoi/suc.htm

again, specially "Method 2":
> Method 2: Trigger a reaction to the turtle's x and y 
> coordinates. Use xcor and ycor....


Daniel
OpenWorld Learning



  • Previous by thread: MIA, Ask an Expert Question
  • Next by thread: MIA, Ask an Expert Question

  • 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