about sprites
Moderator: Stef
Re: about sprites
if you use 32x8 sprites, its enough to just fill the entire 320px. I tried to do a fancy sprite scroller, and it would need exactly 1 more sprite being displayed (so you can't see the edges), but VDP could not handle it, so I instead had to do hacks with planew+planea to display both FG and the scroller.
Re: about sprites
Why in version 1.21 sprite erased when it is outside of the screen?
In the version 1.12 sprite was not erased.
In the version 1.12 sprite was not erased.
Code: Select all
SPR_init(64, 256, 256);
sprites[0] = SPR_addSprite(&logo1, 100, 100, TILE_ATTR(PAL2, TRUE, FALSE, FALSE));
...
logopos++;
SPR_setPosition(sprites[0], logopos, 75);
...
logopos--;
SPR_setPosition(sprites[0], logopos, 75);