about sprites

SGDK only sub forum

Moderator: Stef

User avatar
Very interested
Posts: 81
Joined: Mon Oct 05, 2015 3:00 pm
Location: 0x0

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.

Very interested
Posts: 149
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.


Code: Select all

 SPR_init(64, 256, 256);
sprites[0] = SPR_addSprite(&logo1, 100, 100, TILE_ATTR(PAL2, TRUE, FALSE, FALSE));
SPR_setPosition(sprites[0], logopos, 75);
SPR_setPosition(sprites[0], logopos, 75);

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests