Re: Multplexing sprites



White Flame (aka David Holz) wrote:
If you change the Y-coord after the sprite has started drawing, the entire
sprite will finish drawing where it is, then restart at the new Y-coord.  If
the new position is immediately below the old one, they can match up without
blank lines inbetween.  If the new start position is inside where the old
one was drawing, it won't redraw, because sprites are only in a "drawing" or
"not drawing mode", triggered on the first line of the sprite matching the
Y-coord.
You learn something new every day.

I was always under the (mistaken)impression that it cause visible artifacts on the sprite if you changed the Y while it was displaying.

I suppose it makes sense though. This would explain why sprites can be stretched in a similar manner to how the border can be turned off.

/me has been doing this the hard way. :|
.



Relevant Pages

  • Re: I need advices to make a game with delphi 7.
    ... > around with the mouse (sprite: movable element of the picture, ... > message queue, instead a new message replaces the last one still in the ... If your drawing is too slow the movement will not be smooth since ... > to redraw on every point of the mouse trajectory. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Multplexing sprites
    ... If you change the Y-coord after the sprite has started drawing, ... for zero comes free. ...
    (comp.sys.cbm)
  • Re: Art proudness
    ... > Sprite wrote: ... >>>Considering I'm utterly rubbish at drawing, trying with a touchpad ...
    (uk.games.video.misc)
  • Re: ID3DXSprite not stretching correctly.
    ... I think you might need to look up the general form of a scaling matrix... ... sprite to actually be the center of the sprite (seems obvious, ... > The Width and Height of the texture from which I am drawing is 256×256. ...
    (microsoft.public.win32.programmer.directx.graphics)

Loading