Function MoveSprite: Difference between revisions

From Uzebox Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{Function
{{Function
|prototype  = void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height);
|prototype  = void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height);
|description =  
|description = Convenience function to move a group of aggregated sprites. The position of all sprites are updated relative to the x and y parameters and the specified width and height.
|parameters  =
|parameters  =
* startSprite: The first sprite index from to move
* startSprite: The first sprite index from to move

Latest revision as of 22:31, 27 February 2009

Prototype

void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height);

Description

Convenience function to move a group of aggregated sprites. The position of all sprites are updated relative to the x and y parameters and the specified width and height.

Parameters
  • startSprite: The first sprite index from to move
  • x,y: Target position of startSprite top left corner.
  • width,height: Width and height (measured in tiles) of the multi-tiles sprite.
Returns

Void

Video Modes

2,3

Since

V4

Example: See MapSprite()