I would load to GRP4 since that's where the default sprite sheet is and you want to "overwrite" it. Background tile is GRP5 btw.
I'll show you an example using my game. Let's say I want to put a strawberry and the first picture of ninja.
'Strawberry
LOAD "GRP4:_X"
SPSET 0,1
SPOFS 0,100,120
'Ninja
SPSET 1,80,64,64,64,1
SPOFS 1,120,180
Explanation next post, or see HELP
Explanation 1:
After you load your sprite sheet to GRP4, you'll need to SPrite SET. The strawberry has a single sprite ID (1), but the ninja is 4x4 and has 16 sprite IDs so we'll use a different method.
We'll have to assign each sprite a management ID ranging from 0-511 since we can have many strawberries and the sprite ID won't cut it. So I let strawberry's mID be 0 and ninja be 1. (con't)
Explanation 2:
So strawberry's mID is 0 and sID is 1. Let's put it at coordinate 100,120 which is near the center screen. The result is
LOAD "GRP4:_X"
SPSET 0,1
SPOFS 0,100,120
For ninja, no need to put out 16 sIDs, but we can use the format U,V,W,H where U & V is the location on the sheet shown on the bottom of the screenshot,(80,64). Since a sprite has 16x16 pixels, ninja is 64x64. con't
Explanation last:
Finally, we have to SHOW the sprite, and the HELP screen tells us its attribute is 1. We finally want to put it around coordinate (120,180) which is below the strawberry. The end result is thus:
SPSET 1,80,64,64,64,1
SPOFS 1,120,180
This concludes my explanation. You can look at the code of my game Ninja Solver, and ask if you need anything else ;)
You rock man! I got to go try this out, but thankyou for the great description! The only thing I dont get, what is the blank sprite page for? GRP0 is that why it didn't work? I did find the page in manual about BGs, helped.
I could be wrong but this is my understanding:
GRP0-3 is simply for you to PUT the sprites or draw stuff (like the memo mode in my game). The default top screen uses GRP0 and touch screen uses GRP1. But in order to put your sprites, the sheet has to be stored somewhere first, and that's GRP4. So you load your customized sheet to GRP4, then SPSET to GRP0 (top screen default so no need to type that)
The "overwrite" only happens when LOAD is there. Once you ACLS or exit the program everything's reset. That's why I put the word in quotes, it's not really deleting anything :)
Awesome! To tell the truth, this alone is 80% of my game. All I did most of the time was to load my customized sheet, display sprites and background tiles with SPSET and BGPUT, and animate them using SPANIM and BGANIM. Add some FADE effect and that's the majority of Ninja Solver. I'm looking forward to what YOU'll come up! :D