
The third Alice tutorial focuses on events. It covers a basic understanding for "events" and also how to create key-type and mouse-click events. It is said, with the tutorial we should learn (1) how to make Alice worlds respond to mouse clicks and key-presses; (2) change method when the world starts; (3) add new events e.g. to make the penguins sing their song when we press a key on the keyboard, to make each of the penguins sing their note when we click on them [note: in that world only penguins know how to sing, others will remain silent if we ask them to sing :-D], and to record/play back the penguins' song.
There are three types of Alice events used in this tutorial:
- When the world starts
- When a key is pressed
- When the mouse is clicked on something -- with expressions parameters
Personal notes: I experienced some program crashes as I tried to run scenarios with embedded sounds. I'm still not sure, whether it is a general thing or only related with my hardware. To cope with this, I separately installed the Java3D and JMF packages and open the JMStudio whenever I run Alice (Alice v2.2b). Who knows, maybe it also works for you :-D
No comments:
Post a Comment