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

Lesson 23. Keyboard Control > Using the Width of Sprite to Increase Drawing Spe...

Using the Width of Sprite to Increase Drawing Speed

A pixel is a tiny dot, and moving 1 pixel at a time is a pretty slow rate. In Lesson 21, you changed the speed of a sprite's movement by changing the number of pixels it moved. In this task, you will use a similar technique. However, in this case, there is a slight complication.

Suppose you set the dot to move 5 pixels at a time instead of 1, using the 1-pixel by 1-pixel dot that you created. When you pressed the arrow key, you would see a dot, then 4 empty pixels, and then the next dot. The trail would be a dotted line.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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