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: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Window command
From: "Daniel Ajoy" <dajoy@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Dec 2005 12:15:47 -0500

On 13 Dec 2005 at 10:23, Jim Weiberg wrote:

> I am a relatively new user of MicroworldsEX, I used to use PC Logo and there
> was a WINDOW command that treated the screen as if you were looking out a
> window ... when the turtle went off of the screen, it kept going without
> wrapping.
> My class is in the process of programming a version of the old Q Basic
> Gorrillas game and the WINDOW command would be very helpful ... is there a
> way to create a WINDOW command or are we going to be forced into a bunch of
> error checking for detecting when the turtle leaves the screen and wraps and
> comes back ... it's a mess if that's what we have to do.
> Any suggestions?

You can use a virtual space. In the attached project only fdw 
(forward window) knows of this virtual space. You can use fdw
instead of fd for the turtle that's the banana.

I'm sending MW 2.03 and MWEX versions.


OpenWorld Learning

Attachment: VirtualWindow.mw2
Description: Binary data

Attachment: VirtualWindow.mwx
Description: Binary data

  • Previous by thread: Window command
  • Next by thread: Re: Window command

  • 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