• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

On Your Own

Efficient as it is, this script can still use a bit more optimization. Remember how you created variables to contain the current channel for sprites when you optimized the scripts in Lesson 22? That feature would be useful in this script as well, to let you move sprites easily as you add features to your toy. To add this feature, open the movie script again and create a global variable for sprite 2. You'll need to declare it in the startMovie handler. Then substitute the global variable for the constant value throughout the entire script.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint