Hello everyonne,
I'm new with ds programming and libnds. I try to make a little puzzlle game in 2d
i've followed the example http://www.devkitpro.org/libnds/a00006.html and when I have one sprite in the screen, it works peprfectly.
Now i try to put a second sprite on the same screen but when both are displayed, both have the same texture ( the texture from the first seems to be ovveriden by the second )
I follow the steps of the sample, and to verify i've done the same with this one, i've putted both sprite ( man and woman ) on the bottom screen, the same problem appear.
Does someone have a sourcecode where i can learn how to do, or can explain me what can be the problem ?
Thank You
ps: forgive my english, this is not my first language
ps2: i've searched, and didn't find anything, so my apologies if this problem have already be solved on an other topic
Problem with sprites when more than one
Re: Problem with sprites when more than one
read the parameter..
this is part of my coding
dont forget the index (see the 2nd parameter), palette index (if you you 16 bit mode) and don't foget to put update... Good luck
this is part of my coding
Code: Select all
oamSet(&oamMain,0,195-5,3,2,0,SpriteSize_32x32,SpriteColorFormat_16Color,itemwindow0,-1,false,false,false,false,false); oamSet(&oamMain,1,224-5,3,2,0,SpriteSize_32x32,SpriteColorFormat_16Color,itemwindow0,-1,false,false,false,false,false);
oamUpdate(&oamMain);
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests