Quote:
Originally Posted by Silver Fox
Having done that, create four separate events, one for each possible key press and each calling world.check, like this
when "A" is typed, do world.check("A")
when "B" is typed, do world.check("B")
and so on. Works like a charm.
|
If that's the only way to check multiple keys / events ... then um.. that's really ugly
It would be much more elegant if you could do something like :
when any_key is typed, do world.check(system.key.pressed)
and then some kind of switch/case statement (is there such a thing in Alice ?).
Mike