SPR_initSprite gone?

SGDK only sub forum

Moderator: Stef

Post Reply
matteus
Very interested
Posts: 336
Joined: Mon Feb 04, 2008 1:41 pm

SPR_initSprite gone?

Post by matteus » Thu Apr 27, 2017 6:44 pm

Hey,
I've noticed SPR_initSprite has disappeared what replaced it?

Matt

matteus
Very interested
Posts: 336
Joined: Mon Feb 04, 2008 1:41 pm

Re: SPR_initSprite gone?

Post by matteus » Thu Apr 27, 2017 7:10 pm

Hang about the entire sprite engine has been changed lol!!!!

Code: Select all

SYS_disableInts();
VDP_setPalette(PAL3, zombie_sprite.palette->data);
SYS_enableInts();
//SPR_initSprite(&sprites[0], (SpriteDefinition*)&zombie_sprite, ENEMYSPRITE_POSITION_X, ENEMYSPRITE_POSITION_Y, TILE_ATTR(PAL3, TRUE, FALSE, FALSE));
SPR_addSprite((SpriteDefinition*)&zombie_sprite, ENEMYSPRITE_POSITION_X, ENEMYSPRITE_POSITION_Y, TILE_ATTR(PAL3, TRUE, FALSE, FALSE));
SPR_setAlwaysVisible(&sprites[0], TRUE);
 sprites[0].timer = 0;
SPR_setAnim(&sprites[0], ANIM_MOVING);
How do I fix my code stef :) I don't even know where to begin now the sprites array doesn't exist anymore

matteus
Very interested
Posts: 336
Joined: Mon Feb 04, 2008 1:41 pm

Re: SPR_initSprite gone?

Post by matteus » Thu Apr 27, 2017 7:28 pm

okay I fixed it myself! that was a pain without any proper docs :D But hey lovely and smooth now! I'm going to have to add some extra delays lol

Post Reply