<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 12, 2017, at 1:52 PM, Joel Caulum <<a href="mailto:JCaulum@edgewood.edu" class="">JCaulum@edgewood.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Don,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could you send a code sample, preferably in Alice 2, showing an example of what you described here?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Joel Caulum</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Computer Science</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Portage High School</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Portage, WI</div></div><hr tabindex="-1" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline-block; width: 729.109375px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><div id="divRplyFwdMsg" dir="ltr" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>alice-teachers <<a href="mailto:alice-teachers-bounces+jcaulum=edgewood.edu@lists.andrew.cmu.edu" class="">alice-teachers-bounces+jcaulum=edgewood.edu@lists.andrew.cmu.edu</a>> on behalf of Donald Slater <<a href="mailto:djslater107@mac.com" class="">djslater107@mac.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 9, 2017 3:36:54 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Alice educators<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: alice-teacher Alice 3 Event Listener Question</font><div class=""> </div></div><div class="BodyFragment" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font size="2" class=""><span style="font-size: 10pt;" class=""><div class="PlainText">Emily,<br class="">One solution would be to create a Boolean variable for the Scene / World, maybe called isActive, with an initial value of true.<br class=""><br class="">In the event, create an if... statement<br class="">        if (isActive)<br class=""><br class="">And then the work of the event would be inside the if statement code block...<br class=""><br class="">You would set the isActive variable to false at the point in the program where the user should NOT be able to move the wolf.<br class=""><br class="">Let me know if you have any questions...<br class=""><br class="">All the best,<br class="">Don Slater<br class=""><br class="">Alice Project<br class=""><br class="">Sent from my iPad<br class=""><br class="">> On Nov 9, 2017, at 2:29 PM, Emily Higgins <<a href="mailto:erphiggins@gmail.com" class="">erphiggins@gmail.com</a>> wrote:<br class="">><span class="Apple-converted-space"> </span><br class="">> Hi All,<br class="">> I have a problem.  How can I make an event listener stop working?  We have an event listener moving a wolf, and at certain point in the program, the user needs to NOT be able to move the wolf.  I can't figure it out.<br class="">><span class="Apple-converted-space"> </span><br class="">> Thank you very much,<br class="">> Emily Higgins<br class="">> STEM/Gifted and Talented<br class="">> Boothbay Region High School<br class="">> _______________________________________________<br class="">> alice-teachers mailing list<br class="">> <a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">> To change settings or unsubscribe visit:<br class="">><span class="Apple-converted-space"> </span><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br class="">_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">To change settings or unsubscribe visit:<br class=""><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br class=""></div></span></font></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">alice-teachers mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">alice-teachers@lists.andrew.cmu.edu</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">To change settings or unsubscribe visit:</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div></blockquote></div><br class=""></div></div></div></body></html>