Position in new Sprite struct

SGDK only sub forum

Moderator: Stef

Post Reply
nolddor
Very interested
Posts: 102
Joined: Sun Jun 02, 2013 1:35 pm
Location: Spain

Position in new Sprite struct

Post by nolddor » Mon Jun 30, 2014 11:32 am

Hi all, using SPR_setPosition(spr,0,0); ...

The value of spr.x and spr.y is 128

If possible change this to works how the old struct SpriteDef where spr.x and spr.y values was 0, in my opinion it's a little uncomfortable.

On the other hand, using rescomp to change frames automatically, randomly spr[0] stops the frame changing, I update all sprites together using SPR_update (spr,MAX_SPRITE); maybe can be a bug of spr_engine??

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Mon Jun 30, 2014 11:03 pm

Hi,

Thanks for reporting the problem here, also that also issue experience sharing about SGDK ;)
Modifying the sprite position is not a big deal but honestly that new way is definitely more comfortable as sprite position is directly what you get on screen where before i was using internal VDP position which are shifted by -128.

For the other problem (automatic frame changing), can you post an example ? i used it severals time without experiencing any problems. Thanks !

nolddor
Very interested
Posts: 102
Joined: Sun Jun 02, 2013 1:35 pm
Location: Spain

Post by nolddor » Tue Jul 01, 2014 8:59 am

I send you a PM with a sample.

Regards.

Post Reply