about sprites

SGDK only sub forum

Moderator: Stef

Natsumi
Very interested
Posts: 82
Joined: Mon Oct 05, 2015 3:00 pm
Location: 0x0
Contact:

Re: about sprites

Post by Natsumi » Wed Dec 21, 2016 12:03 pm

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.

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: about sprites

Post by alko » Sat Mar 18, 2017 9:14 pm

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

Post Reply