Saturday 7 April 2012

Tutorial 2 - Question 2


This is tutorial 2 - Question 2 which is Rabbit and Fan. This story is about When the fan button is switch On the Fan.Blade will start move, and Rabbit Ear will move Backward. When the Switch button is off, the Fan.Blade is Not turning, the rabbit ear is back to normal.

Video:

Summary Progress:
  1. Input two object which are Fan and Rabbit.
  2. Create two event method which are "When Mouse Click On Button" and "When Mouse Click Off Button".
  3. In the Event On button
  • Fan.highButton is set to showing to False and fan.offButton is set to showing to True.
  • Using 'While fan.offButton. is Showing', we add a command under it which is 'fan.blades roll left 1 revolution.
  • This means that when the off button is showing, the fan blades will keep rotating as long as the fan off button is not showing.
  • In the same time, Using Do together, to set the Movement of Rabbit Ear.  
    4. In the Event Off Button
  • We set fan.highButton is set to showing toTrue and fan.offButton is set to showing to False.
  • It means when Offbutton is press down, the movement of fan will stop and rabbit ear will back to Original.

No comments:

Post a Comment