[Contents] [Index] [Help] [Retrace] [browse <] [Browse >]


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,y)  - new position relative to top of viewport or view.

RESULTS
    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.

SEE ALSO
    freesprite()  changesprite()  getsprite()  graphics/sprite.h