Wednesday, October 26, 2011

Moving Animation- Fire Breathing Dragon

Using the tutorial on StudentNet I have learnt how to make a moving animation using the program Scratch.


<----- On the right is the blocks I used to construct the moving dragon which is shown in the above two images. The orange-yellow blocks are used to HOW long the object should move. The purple blocks control what "costume" is shown. With the dragon, there are two costumes. A costume is the object itself. The dark blue blocks are used to control the steps and movement of the object, and the light blue block is user to tell the object WHEN to move.

In these blocks the dragon is: going to start when I press 'space,' repeat until I press the 'down' button, change to 'costume a' (costume 'a' is the dragon with a shut mouth). After that, it'll wait 0.5 seconds until moving 4 steps. Then it'll switch to 'costume b' (costume 'b' is the fire breathing dragon), wait 0.5 seconds, move 4 steps and if the dragon hits the edge it will turn around and REPEAT!!

No comments:

Post a Comment