Session 6
Session 6
Recall test
The horizontal line is called the x-axis and the vertical line is called the
y-axis.
What is the difference between goto x() y() and glide() x() y()
command ?
The glide command, “glide _ secs to x: _ y: _”, specifies a duration for how long it
will take the sprite to move to the stated point.
The go to command, “go to x: _ y: _”, instantly moves the sprite to the specified
point
Ø Change x by -10 command makes the sprite to move left side by 10 steps
Ø Set x value command will make the sprite to go and stay in that specific x
value
Ø Set y value command will make the sprite go and stay in that specific y
value.
Point in Direction Command
Point in direction and move command makes the sprite to move in that specified
direction
Concept test
What is the difference between change x by() and set x() command ?
The set command sets the sprite in the specified value whereas the change
command changes the location of the sprite from one to another with the
specified value.
There are 360 degrees in one Full Rotation (one complete circle around).
Class Activity 1 :Edward’s first favourite game is bouncing balls.Can we
help edward in creating the game ?
-Add code to make the astronaut sprite glide on random position and rocket
sprite to move from right to left/left to right starting with specific position.
Commands for ripley sprite
-Add background.
-Add code for building and cloud sprite to give the illusion of a flying cat.
Home Assignment
1) Create a complete animated fish tank project in which fish sprites
should swim continuously and jellyfish should jump continuously.
2) Create a complete animated flying scene in which bird and the cloud
sprites move continuously.