alice-teacher switching which object is controlled by arrows

Tony Bowes tony-bowes at stlukes.qld.edu.au
Wed Nov 23 15:47:55 EST 2011


It would seem that directly referencing the activeObject as the source for
"Let the arrow keys control .." throws an exception:
java.lang.ClassCastException: edu.cmu.cs.stage3.alice.core.Variable cannot
be cast to edu.cmu.cs.stage3.alice.core.Transformable

... however setting each individual key (up,down,left,right) to move the
activeObject will work as expected.

Tony Bowes

On Thu, Nov 24, 2011 at 4:13 AM, Don Slater <dslater at andrew.cmu.edu> wrote:

>
> I have created a world level object variable and named it "activeObject"…
>
> --

Tony Bowes
ICT / IPT / Maths Teacher
St Luke's Anglican School
4 Mezger St Bundaberg  Qld  4670

p: (07) 4132 7500
f:  (07) 4132 7556
*tony-bowes at slasmail.com
http://www.stlukes.qld.edu.au*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20111124/49695fc8/attachment.html 


More information about the alice-teachers mailing list