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

Using Trails

Now your drawing dot moves in response to presses on the left and right arrow keys, but no drawing takes place. The previous location of the dot is erased each time the stage is updated.

Setting the trails property for a sprite causes Director not to erase the sprite in the current frame before the playback head moves on to the next frame, as Director normally would do. The result is that the sprite remains on the stage instead of being erased. Here you will use trails to leave a line behind the dot as it moves across the stage.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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