Page 2 of 2

Re: about sprites

Posted: Wed Dec 21, 2016 12:03 pm
by Natsumi
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

Posted: Sat Mar 18, 2017 9:14 pm
by alko
Why in version 1.21 sprite erased when it is outside of the screen?
In the version 1.12 sprite was not erased.

Image

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);