<div dir="ltr">Thanks Don,<div><br></div><div>appears one of my other students came to that same conclusion as you did.</div><div><br></div><div>we will implement in that fashion.</div><div><br></div><div>thanks so much for your time</div><div><br></div><div>steve</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Steven Pleau<div>Computer Programming & Web Development Teacher</div><div>Assabet Valley Regional Technical High School</div><div>215 Fitchburg Street</div><div>Marlborough,MA 01752</div><div><a href="mailto:spleau@assabet.org" target="_blank">spleau@assabet.org</a><br></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 8, 2016 at 2:33 PM, Don Slater via alice-teachers <span dir="ltr"><<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Interesting. It seems that the KeyPressListener and the ArrowKeyPressListener cannot be implemented at the same time. And it seems, in your example, anyway, that arrowKeyPressed overrides keyPress, but that may be an artifact of this particular implementation.<div><br></div><div>My suggestion is the you use only KeyPressListener, which gives you access to all keys on the keyboard, including the arrow keys. I have attached my solution.</div><div><br></div><div>Let me know if you have any questions…</div><div><br></div><div>All the best,</div><div>Don Slater</div><div><div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><div><div><br>Alice Team<br>Carnegie Mellon University<br>Entertainment Technology Center<br>700 Technology Drive<br>Pittsburgh, PA 15219<br><br>Email: <a href="mailto:dslater@cmu.edu" target="_blank">dslater@cmu.edu</a></div><div><br></div><div>I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br>--- Henry David Thoreau</div></div><div><br></div><div>The true object of all human life is play. -- G.K. Chesterton<br><br></div></div></span></div></span></div></span></div></span></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div>On Jan 8, 2016, at 8:23 AM, Steven Pleau via alice-teachers <<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>> wrote:</div><br><div><div dir="ltr">Sorry for the delay.<div><br></div><div>Here is the file with the events for both WASD and Arrow keys.</div><div><br></div><div>Only they Arrow keys work?</div><div><br></div><div>Thanks</div><div><br></div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">Steven Pleau<div>Computer Programming & Web Development Teacher</div><div>Assabet Valley Regional Technical High School</div><div>215 Fitchburg Street</div><div>Marlborough,MA 01752</div><div><a href="mailto:spleau@assabet.org" target="_blank">spleau@assabet.org</a><br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jan 6, 2016 at 11:02 AM, Don Slater via alice-teachers <span dir="ltr"><<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Would you please send a copy of the world, or a screen shot of their implementation?<div><br></div><div>Thank you,</div><div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span style="border-collapse:separate;font-family:Verdana;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><div><div>Don Slater</div><div><br>Alice Team<br>Carnegie Mellon University<br>Entertainment Technology Center<br>700 Technology Drive<br>Pittsburgh, PA 15219<br><br>Email: <a href="mailto:dslater@cmu.edu" target="_blank">dslater@cmu.edu</a></div><div><br></div><div>I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br>--- Henry David Thoreau</div></div><div><br></div><div>The true object of all human life is play. -- G.K. Chesterton<br><br></div></div></span></div></span></div></span></div></span></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div>On Jan 6, 2016, at 10:54 AM, Steven Pleau via alice-teachers <<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>> wrote:</div><br><div><div dir="ltr">Hi gang,<div><br></div><div>My students are trying to get the WASD keys and ARROW keys to work simultaneously in a world, but when they add the ARROW keys the WASD keys no longer work?</div><div><br></div><div>Any suggestions/solutions?</div><div><br></div><div>Thanks</div><div><br></div><div>Steve</div><div><br clear="all"><div><div><div dir="ltr">Steven Pleau<div>Computer Programming & Web Development Teacher</div><div>Assabet Valley Regional Technical High School</div><div>215 Fitchburg Street</div><div>Marlborough,MA 01752</div><div><a href="mailto:spleau@assabet.org" target="_blank">spleau@assabet.org</a><br></div></div></div></div>
</div></div>
_______________________________________________<br>alice-teachers mailing list<br><a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br></blockquote></div><br></div>
<span><BrandonAnway_Game1ERROR.a3p></span>_______________________________________________<br>alice-teachers mailing list<br><a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br></blockquote></div><br></div>