![]() ![]() Interval The interval in milliseconds at which the Ball’s position is updated. Of the screen 90 degrees is toward the top of the screen. ![]() Heading The Ball’s heading in degrees above the positive x-axis. Properties Enabled Controls whether the Ball moves when its speed is non-zero. The difference between a Ball and an ImageSprite is that the latter can get its appearanceįrom an image file, while a Ball’s appearance can only be changed by varying its Other properties can be changed at any time. Interval property to 500, the Heading property toĩ0, and the Enabled property to true. (half second), you would set the Speed property to 4, the Interact with other sprites ( ImageSprites and other Balls) and the edge of theĬanvas, and move according to its property values.įor example, to have a Ball move 4 pixels toward the top of a Canvas every 500 milliseconds A round ‘sprite’ that can be placed on a Canvas, where it can react to touches and drags, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |