alice-teacher another question

Robert Knight zknightcsci at gmail.com
Fri Nov 11 17:28:58 EST 2011


It's probably better to put both into the same method and have an if
statement and state variable controlling whether the penguin rolls left or
right.

Z

On Thu, Nov 10, 2011 at 5:59 AM, Emily Higgins <erphiggins at gmail.com> wrote:

> Hi All -
> Is it possible to have two different actions associated with one event?
>  My student wants the penguin to take one step with each pressing of the up
> arrow key.  In other words, the penguin would roll left with the first
> press, roll right with the second press.
>
> Thank you again for all your help.
> Emily Higgins
> Boothbay Harbor, Maine
>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
>


-- 
Z Knight
Instructor of Computer Science
Hawai`i Pacific University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20111111/fa4338f3/attachment.html 


More information about the alice-teachers mailing list