
12
Changing sprite properties
Changing sprite properties
•
•
Changing the properties of
Changing the properties of
a sprite is an important
a sprite is an important
way of creating dynamic
way of creating dynamic
content in Director.
content in Director.
•
•
Let
Let
’
’
s change the cast
s change the cast
member of a tomato sprite
member of a tomato sprite
to create a blinking
to create a blinking
-
-
eyes
eyes
-
-
effect!
effect!
•
•
First, we import the two
First, we import the two
images and create a sprite
images and create a sprite
for the tomato as usual.
for the tomato as usual.
Changing sprite properties
Changing sprite properties
Next, we create a global variable to keep track of time as before.
We also need a variable that states when the next member change
is to take place.
We also create a variable that states if the tomato’s eyes are open or not.
Comentários a estes Manuais