Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Sprite Problemozzzz....???   Message List  
Reply | Forward Message #5964 of 15019 |
Hi everyone

I really feel bad posting this once again ;
but since the last time ; I haven't managed to get it to work
proparly :
sprite 0 always comes out perfectly
sprite 1 has it's top cut off but the rest is ok
and sprite 2 simply apears blank ....grrrrrrr

I set the starting characters at
(previous-sprite-start-location + size-of-sprite / (4*8))

where size of sprite = 256 for a 16x16 sprite

as posted in previous posts but the pb remains
here's my problematic code I guess :
///////////////////////////////////////////////////////////
InitializeSprites(); //set all 128 sprites to offscreen

sprites[0].attribute0 = COLOR_256 | SQUARE | y_ball;
sprites[0].attribute1 = SIZE_16 | x_ball;
sprites[0].attribute2 = 0; //first sprite

sprites[1].attribute0 = COLOR_256 | SQUARE | y_boy1;
sprites[1].attribute1 = SIZE_32 | x_boy1;
sprites[1].attribute2 = 8; //second sprite 0 + 128/16 = 8

sprites[2].attribute0 = COLOR_256 | y_plot1;
sprites[2].attribute1 = SIZE_16 | x_plot1;
sprites[2].attribute2 = 40; // third sp 8+(512 / 16)= 8 + 32 = 40

//OBJ_MAP_1D
for(loop = 0; loop < 128; loop++)
{
OAMData[loop] = ball16Data[loop];
}//end loop loop
for(loop= 128; loop < 641; loop++)
{
OAMData[loop] = blueboy32Data[loop];
}//end loop loop
for(loop = 641 ; loop < 769; loop++)
{
OAMData[loop] = plotData[loop];
}//end loop loop
////////////////////////////////////////////
If anybody has a clue of what's going on in this guys(*gba* or mine)
head pleaze feel free to operate...

Thanx in advance
Tib







Wed Aug 1, 2001 1:03 pm

robit69@...
Send Email Send Email

Forward
Message #5964 of 15019 |
Expand Messages Author Sort by Date

Hi everyone I really feel bad posting this once again ; but since the last time ; I haven't managed to get it to work proparly : sprite 0 always comes out...
robit69@...
Send Email
Aug 1, 2001
4:47 pm

... why are you going size of sprite / 32? This will not be the number of tiles. try size of sprite / 64....
Dan Cotter
dancotter@...
Send Email
Aug 2, 2001
3:10 am

... of tiles. ... Hi I tried dividing by 64 but it just mixes up and cuts up my sprite where as before I'd have only little parts missing ... :( but why 64 and...
robit69@...
Send Email
Aug 3, 2001
1:20 pm

what mode are you using? for the tilenumber: In 16colorsx16palettes, it allows selection of up 1024 (0-1023) characters. In 256colors, 1D mapping, it allows...
Dan Cotter
dancotter@...
Send Email
Aug 5, 2001
4:02 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help