Returns the sprite's heading in degrees above the positive x-axis. Properties Enabled Controls whether the sprite moves when its speed is non-zero. The difference between a ball and an image sprite is that the latter can get its appearance from an image, while a ball's appearance can only be changed by varying its PaintColor and Radius properties. You can change these and other properties to modify the ball's behavior. For example, to have a ball move 4 pixels toward the top of a canvas every 500 milliseconds (half second), you can set the Speed property to 4, the Interval property to 500, the Heading property to 90 (degrees), and the Enabled property to True. A ball component is a particular kind of sprite (animated object) that looks like a ball.Ī ball is a round sprite that is contained by a canvas, can react to touches and drags, interact with other sprites (image sprites and other balls) and the edge of the canvas, and move according to its properties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |