• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. CREATING BEHAVIORS > CONTROLLING A SINGLE SPRITE

CONTROLLING A SINGLE SPRITE

All that most behaviors essentially do is control a single sprite. You write them, and then attach them to one or more sprites in the Score to have them take control of that sprite.

As the name suggests, a behavior tells a sprite how to behave. For instance, an on mouseUp handler in a behavior tells the sprite how to behave when users click the sprite.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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