Home  /  Autodocs  /  graphics.library

NAME

MoveSprite
Move sprite to a point relative to top of viewport.

SYNOPSIS

MoveSprite(vp, sprite, x, y)
A0 A1 D0 D1

void MoveSprite(struct ViewPort *,struct SimpleSprite *, WORD, WORD);

FUNCTION

Move sprite image to new place on display.

INPUTS

vp
pointer to ViewPort structure if vp = 0, sprite is positioned relative to View.

sprite
pointer to SimpleSprite structure

x
see next

y
new position relative to top of viewport or view.

RESULT

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.

BUGS

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.

SEE ALSO

FreeSprite() ChangeSprite() GetSprite() <graphics/sprite.h>