Function MoveSprite

From Uzebox Wiki
Jump to navigation Jump to search
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()