<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>James-</p>
<p>I wrote a simple version, and tried multi-clicking rapidly. All items were added at the default 1 second rate while the program moved on. Perhaps it would be better for you to spend a little more time explaining to your students the "Importance" of clicking
 on the<span style="color: rgb(255, 0, 0);"> <u><span style="color: rgb(0, 0, 0);">"more" option</span></u>
</span>when dragging in a new command. Many of these features are essential in creating clean visual animations, and students need to know how to use them correctly.<br>
</p>
<br>
Mike Owen<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> alice-teachers <alice-teachers-bounces+mrgrog=outlook.com@lists.andrew.cmu.edu> on behalf of Vanderhyde, James <vanderhyde@sxu.edu><br>
<b>Sent:</b> Thursday, April 6, 2017 4:38 PM<br>
<b>To:</b> Alice educators<br>
<b>Subject:</b> Re: alice-teacher Alice 2 issue: adding item to array or list takes 1 second</font>
<div> </div>
</div>
<div>
<div style="-ms-word-wrap: break-word;">Sorry, I didn’t attach the example world. Here it is.
<div><br>
</div>
<div>James<br>
<div>
<div style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word;">
—<br>
James Vanderhyde<br>
Assistant Professor, Computer Science<br>
Program Director, Master of Applied Computer Science<br>
Saint Xavier University<br>
3700 W. 103rd St.<br>
Chicago, IL 60655<br>
773-298-3454</div>
</div>
</div>
</div>
<div style="-ms-word-wrap: break-word;">
<div><br>
<div>
<div>On Apr 6, 2017, at 4:17 PM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu">vanderhyde@sxu.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div style="-ms-word-wrap: break-word;">My students today hit an unexpected problem working with a list. They were doing Exercise 4 in Chapter 9 of Dann, Cooper, Pausch 3rd edition (p. 281): Casting a Beach Scene. The exercise instructs the students to create
 an interactive animation where the user clicks on actors to add them to a list.
<div><br>
</div>
<div>The problem came in when the students tested their programs. The program was written correctly, but sometimes not all the actors that were clicked got added to the list. It turned out the students were clicking too fast. I discovered that the “insert object
 at end of list” instruction (and the “set item i to object in array” instruction) has a 1-second duration by default. This is inconsistent with the “variable set value” instruction and “increment variable by 1” instruction, which are both 0 seconds by default.</div>
<div><br>
</div>
<div>I am attaching an Alice world that shows the problem. Clicking on the bunny adds it to a list and an array. If you look at the World properties when you play, then click rapidly on the bunny, you see the list update immediately but the array wait 1 second
 between updates. This is because I specified “duration = 0” in the list insert, but I left the array set item at the default duration.</div>
<div><br>
</div>
<div>Thanks for looking at this. It would be nice to have consistent behavior.</div>
<div><br>
</div>
<div>James<br>
<div>
<div style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word;">
—<br>
James Vanderhyde<br>
Assistant Professor, Computer Science<br>
Program Director, Master of Applied Computer Science<br>
Saint Xavier University<br>
3700 W. 103rd St.<br>
Chicago, IL 60655<br>
773-298-3454</div>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>