[MWForum]HELP
Pavel Boytchev
mwforum@lists.mathcats.com
Thu, 29 Aug 2002 17:13:01 -0400
--------------040209050905070901070403
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi Graham,
I'm not sure how easy it is to rotate form in MW, but to do so, you may take into consideration several things:
(1) Make all shapes configurable (in terms of position and orientation). Normally this means to have 3 numbers : (X,Y) for the position and a heading. Then, when you want to draw a shape somewhere in a given orientation, you move the turtle to (X,Y), then set heading to the orientation angle and finally draw the shape (the shape drawing itself must be position and orientation independent).
(2) You need to capture mouse clicks or to use another way to identify which shape is being clicked on.
(3) Decide what method of user interface you'd prefer to implement:
(3.a) You click on a shape to select it, then press keys to control left/right rotation
(3.b) You rotate a shape by draging one of its vertices around shape's center
(3.c) You rightclick on a shape to turn it to the right and leftclick to turn it to the left
> We are currently using Microworlds v 2.03
> and I'm wondering if the issue I mention
> above would be non-issue if we were using
> Microworlds Pro. That is to say, would I
> be able to programme the turtle/tiles to
> rotate without any problems if we were
> working in the MwPro environment. Is this
> the case?
If you switch to Elica Logo, you will have no
problems to define different tile and freely
drag and rotate them.
I have an interactive tangram game written
in Elica Logo. There are several types of
block and if you drag and rotate them only
with the mouse: to drag tile you click on
its center and drag it, to rotate a tile
you click on any vertex and rotate it
clockwise or counterclockwise (by dragging).
Let me know if you'd like to see the
program. However, keep in mind that Elica
and MW are *NOT* compatible...
Pavel Boytchev
Elica Team
--------------040209050905070901070403
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html>
<head>
</head>
<body>
<pre wrap="">Hi Graham,<br><br>I'm not sure how easy it is to rotate form in MW, but to do so, you may take into consideration several things:<br><br>(1) Make all shapes configurable (in terms of position and orientation). Normally this means to have 3 numbers : (X,Y) for the position and a heading. Then, when you want to draw a shape somewhere in a given orientation, you move the turtle to (X,Y), then set heading to the orientation angle and finally draw the shape (the shape drawing itself must be position and orientation independent).<br><br>(2) You need to capture mouse clicks or to use another way to identify which shape is being clicked on.<br><br>(3) Decide what method of user interface you'd prefer to implement:<br><br>(3.a) You click on a shape to select it, then press keys to control left/right rotation<br>(3.b) You rotate a shape by draging one of its vertices around shape's center<br>(3.c) You rightclick on a shape to turn i
t to the right and leftclick to turn it to the left<br><br></pre>
<pre wrap="">> We are currently using Microworlds v 2.03<br>> and I'm wondering if the issue I mention<br>> above would be non-issue if we were using<br>> Microworlds Pro. That is to say, would I<br>> be able to programme the turtle/tiles to<br><!---->> rotate without any problems if we were<br>> working in the MwPro environment. Is this<br>> the case?<br><br>If you switch to Elica Logo, you will have no<br>problems to define different tile and freely<br>drag and rotate them.<br><br>I have an interactive tangram game written<br>in Elica Logo. There are several types of<br>block and if you drag and rotate them only<br>with the mouse: to drag tile you click on<br>its center and drag it, to rotate a tile<br>you click on any vertex and rotate it<br>clockwise or counterclockwise (by dragging).<br><br>Let me know if you'd like to see the<br>program. However, keep in mind that Elica<br>and MW are *NOT* compatible...<br><br>Pavel Boytchev<br>Elica Team</
pre>
<br>
</body>
</html>
--------------040209050905070901070403--