Docs » Autodocs » graphics.library » MoveSprite
MoveSprite -- Move sprite to a point relative to top of viewport.
MoveSprite(vp, sprite, x, y) A0 A1 D0 D1 void MoveSprite(struct ViewPort *,struct SimpleSprite *, WORD, WORD);
Move sprite image to new place on display.
vp - pointer to ViewPort structure if vp = 0, sprite is positioned relative to View. sprite - pointer to SimpleSprite structure (x,y) - new position relative to top of viewport or view.
Calculate the hardware information for the sprite and place it in the posctldata array. During next video display the sprite will appear in new position.
Sprites really appear one pixel to the left of the position you specify. This bug affects the apparent display position of the sprite on the screen, but does not affect the numeric position relative to the viewport or view. This behaviour only applies to SimpleSprites, not to ExtSprites.
FreeSprite(), ChangeSprite(), GetSprite(), <graphics/sprite.h>
|