alice-teacher switching which object is controlled by arrows

Don Slater dslater at andrew.cmu.edu
Thu Nov 24 09:20:33 EST 2011


Tony,
Thank you for pointing this out… It seems that the Let Arrow Keys Control event is expecting an object of a specific type, and the variable we created does not meet that spec…

Something for us to look into…

Happy Thanksgiving,
Don Slater

On Nov 23, 2011, at 2:47 PM, Tony Bowes wrote:

> 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
> 
> 
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers



More information about the alice-teachers mailing list