Monday, March 22, 2010

Lesson 12 - Event Programming

Event handlers respond to inputs (mouse, keyboard) or program changes such as execution of a method.

The following are Event Handlers available in Alice:

World Events:
When the World Starts
While the World Is Running

Keyboard Events:
When a Key is Typed
While a Key is Pressed
Let the Arrow Keys Move an Object

Mouse Events:
When the Mouse is Clicked on Something
While the Mouse is Pressed on Something
Let the Mouse Move the Camera
Let the Mouse Orient the Camera
Let the Mouse Move Objects

Condition Events:
When a variable changes
While something is true
When something becomes true


No comments:

Post a Comment