alice-teacher Scope of world booleans

Tony Bowes tony-bowes at stlukes.qld.edu.au
Tue Nov 8 15:24:03 EST 2011


Hi there.

>From the documentation I'm lead to believe that world variables have scope
over all objects brought into the world.  I'm having problems getting world
boolean variables to retain their scope and be useful in IF structures on
dependent objects. I can drag local boolean variables directly into the IF
condition, but can't drag world booleans into there. This makes setting up
game state variables more tricky than expected. Note that setting world
functions that simply return the variable state work as expected, but I'd
rather leave encapsulation until much later.

Is there a simple way of tracking and checking game states?

-- 

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/20111109/e7f3fdd3/attachment.html 


More information about the alice-teachers mailing list