CreateSprite

CreateSprite is the most common routines used in most of a game to handle any objects with a coordinate and a physics property. CreateSprite routine has seven overloads which can be used to create an animation sprite with an array of bitmaps, an animation sprite with a single bitmap containing series of cells and a static bitmap. The enumeration used to define the types of sprite is called SpriteKind. The SpriteKind enumeration is initialised and processed internally so user of the SwinGameSDK will not need to modify them manually. The enumaration used to define the types of action taken when an animation ends is called SpriteEndingAction. If you do not specify the ending action, a sprite will automatically set the ending action to Loop. This routine will return a new sprite with the specified data.

←This is a cell

Also See

 * UpdateSprite
 * UpdateSpriteAnimation