プレイ日記
Aaron Krondelo
Ok, now how do you use a custom sprite? saved and loaded, but no commands seem to put it on the screen!?
2そうだね
プレイ済み
返信[1]
親投稿
L. Lohadaa
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
1そうだね
未プレイ
返信[2]
親投稿
L. Lohadaa
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)
1そうだね
未プレイ
返信[3]
親投稿
L. Lohadaa
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
1そうだね
未プレイ
返信[4]
親投稿
L. Lohadaa
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 ;)
0そうだね
未プレイ
返信[5]
親投稿
Aaron Krondelo
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.
0そうだね
プレイ済み
返信[6]
親投稿
Aaron Krondelo
BTW I didnt even realize you made those sprites in your game, nice job! Thanks so much for the help.
0そうだね
プレイ済み
返信[7]
親投稿
Aaron Krondelo
Last Q: I don't need to worry about permanently deleting them if I overwrite correct?
0そうだね
プレイ済み
返信[8]
親投稿
L. Lohadaa
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)
0そうだね
未プレイ
返信[9]
親投稿
L. Lohadaa
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 :)
1そうだね
未プレイ
返信[10]
親投稿
Aaron Krondelo
Great man! You described it so well I already made a custom loading animation in 30 minutes! :)
0そうだね
プレイ済み
返信[11]
親投稿
L. Lohadaa
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
1そうだね
未プレイ