Stef devkit - Sprite drawing problem
Posted: Mon Dec 07, 2009 12:28 pm
Hi everyone!
I try to make a small project with the stef's devkit, but i have a small problem with sprites.
When i try to draw more than one sprite, only the first is drawed.
I use VDP_setSpriteP to init sprite, like this :
VDP_setSpriteP(0,24,64,SPRITE_SIZE(4,4), 0, 0);
VDP_setSpriteP(1,64,64,SPRITE_SIZE(4,4), 0, 1);
VDP_setSpriteP(2,128,64,SPRITE_SIZE(4,4), 0, 2);
But only one sprite appairs one the screen.
How can i draw 3 sprites correctly?
Thanks in advance!
I try to make a small project with the stef's devkit, but i have a small problem with sprites.
When i try to draw more than one sprite, only the first is drawed.
I use VDP_setSpriteP to init sprite, like this :
VDP_setSpriteP(0,24,64,SPRITE_SIZE(4,4), 0, 0);
VDP_setSpriteP(1,64,64,SPRITE_SIZE(4,4), 0, 1);
VDP_setSpriteP(2,128,64,SPRITE_SIZE(4,4), 0, 2);
But only one sprite appairs one the screen.
How can i draw 3 sprites correctly?
Thanks in advance!