Hey,
I've noticed SPR_initSprite has disappeared what replaced it?
Matt
SPR_initSprite gone?
Moderator: Stef
Re: SPR_initSprite gone?
Hang about the entire sprite engine has been changed lol!!!!
How do I fix my code stef I don't even know where to begin now the sprites array doesn't exist anymore
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);
Re: SPR_initSprite gone?
okay I fixed it myself! that was a pain without any proper docs But hey lovely and smooth now! I'm going to have to add some extra delays lol