|
Custom Powerup
You can always edit ICB's Hammer and Boomerang powerups. Just change the code, or make it so you shoot another sprite, and voila.
Making a powerup isn't too hard really. It can consist of only a sprite or a sprite and a generator (but the latter is more easier to work with).
First you need to make a sprite set an unused RAM Address when collected (you should use values in $0DC6, that's what ICB did), Make Mario big and then erase itself (which you can do by putting STZ $14C8,x at the end of the sprite code). You can also add the mushroom collect animation and sound effect too.
Then in a generator, check if Mario is big or not. If he isn't STZ the RAM Address, (in this case $0DC6) and return. If it is set, execute the code which the powerup should do. You can also make Mario throw projectiles this way as well. To change Mario's palette, use this piece of code:
LDY #$19 ; palette number to change
STY $2121
LDA #$1D ; first part of the SNES RGB value
STA $2122
LDA #$58
STA $2122 ; second part of the SNE RGB value
The SNES RGB value is 4 digits, the first two go in the first part, and last two go in the next part. But the problem with this is that you have change every color if you want Mario to change color when getting the powerup.
Hope this helps ;)
First you need to make a sprite set an unused RAM Address when collected (you should use values in $0DC6, that's what ICB did), Make Mario big and then erase itself (which you can do by putting STZ $14C8,x at the end of the sprite code). You can also add the mushroom collect animation and sound effect too.
Then in a generator, check if Mario is big or not. If he isn't STZ the RAM Address, (in this case $0DC6) and return. If it is set, execute the code which the powerup should do. You can also make Mario throw projectiles this way as well. To change Mario's palette, use this piece of code:
LDY #$19 ; palette number to change
STY $2121
LDA #$1D ; first part of the SNES RGB value
STA $2122
LDA #$58
STA $2122 ; second part of the SNE RGB value
The SNES RGB value is 4 digits, the first two go in the first part, and last two go in the next part. But the problem with this is that you have change every color if you want Mario to change color when getting the powerup.
Hope this helps ;)
|
EDIT: Actually, it seems only the last RGB value is being loaded.
Edit 2: Actually, the last RGB value has to be loaded first. Now I have it all working
Using the generator method would require that the generator be placed on every level that uses the power up, right?
Krakenskin Leather Works, my Etsy store.
LordVanya, my art page.
FundamentalEssence, my game development page.
Krakenskin Leather Works, my Etsy store.
LordVanya, my art page.
FundamentalEssence, my game development page.
Yeah. Also Ladida, I'm sorry, I was wrong. The second RGB value comes before the first :/
@Spade: If you want to make Mario throw stuff, you can base your sprite off the hammer/boomerang sprite ICB made.
@Spade: If you want to make Mario throw stuff, you can base your sprite off the hammer/boomerang sprite ICB made.
|
'.' ... T_T
You know, it would be cool if someone made a sword sprite(s) and released it to the public. That would help a lot of people........ Now that I think about it, that would be perfect for C3! (Not that I could program a sword sprite)
Originally posted by Iceguy
In other words, you can use only a sprite. To only use a sprite, you need it to load the graphics routine only before it's collected.It can consist of only a sprite or a sprite and a generator (but the latter is more easier to work with.
You know, it would be cool if someone made a sword sprite(s) and released it to the public. That would help a lot of people........ Now that I think about it, that would be perfect for C3! (Not that I could program a sword sprite)
@spade
What Iceguy's trying to say is that there is already a routine for Mario throwing sprites in ICB's hammer/boomerang powerups. So, all you would have to do is make the sprite you want mario to throw, and use that instead of the hammer/boomerang.
If you can't understand it that way, you won't understand it anyway at all.
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
Taking ExGFX ripping/making requests, as well as pallete requests.
ExGFX:Jenka's Character Portrait, Custom detailed ground tileset, Cave-story style ExGFX, and Replacements for SMW sprites (V. 1.0) Update coming!
Documents: A tutorial for Iceguy's levelnames
Hacks I support:
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
What Iceguy's trying to say is that there is already a routine for Mario throwing sprites in ICB's hammer/boomerang powerups. So, all you would have to do is make the sprite you want mario to throw, and use that instead of the hammer/boomerang.
If you can't understand it that way, you won't understand it anyway at all.
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
Taking ExGFX ripping/making requests, as well as pallete requests.
ExGFX:Jenka's Character Portrait, Custom detailed ground tileset, Cave-story style ExGFX, and Replacements for SMW sprites (V. 1.0) Update coming!
Documents: A tutorial for Iceguy's levelnames
Hacks I support:
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
It's not like he doesn't understand it. You don't understand him. He DOESN'T want Mario to throw something. Yet you always tell him how to make Mario throw something.
Feel free to visit my website/blog - it's updated rarely, but it looks pretty cool!
Feel free to visit my website/blog - it's updated rarely, but it looks pretty cool!
Originally posted by Spade
I've barely learned anything from this thread at all. :|
It's not like you can expect to easily make a powerup when you're new to ASM... you should first familarise yourself with custom blocks and maybe patches before you start learning spriting, it's a bit more difficult. Once you understand a bit spriting, what I said before should give you an idea of how you can make your own powerup.
|
You're talking about that powerup that makes Mario small for a certain time, right? I'm currently working on it, but there's two downsides:
- It's a block (I haven't figure out how to put that code in a sprite yet), meaning you can't have it use feather GFX or plaette B.
- I'm still working on it, and I don't even know if it'll work.
- It's a block (I haven't figure out how to put that code in a sprite yet), meaning you can't have it use feather GFX or plaette B.
- I'm still working on it, and I don't even know if it'll work.
Well, if you just want to make Mario small:
STZ $19
RTS/RTL (depending on if it's a sprite or a block, and if it's a block, which Blocktool it's for)
Is there anything else you want to happen? Like, do you want Mario's current powerup to go into the item box, or make him go back to being big after a certain time, or anything like that?
(Also, if you'd like to learn ASM, you might want to take a look at Schwa's tutorial if you haven't already.)
----------------
I'm working on a hack! Check it out here. Progress: 64/95 levels.
STZ $19
RTS/RTL (depending on if it's a sprite or a block, and if it's a block, which Blocktool it's for)
Is there anything else you want to happen? Like, do you want Mario's current powerup to go into the item box, or make him go back to being big after a certain time, or anything like that?
(Also, if you'd like to learn ASM, you might want to take a look at Schwa's tutorial if you haven't already.)
----------------
I'm working on a hack! Check it out here. Progress: 64/95 levels.
|
Oops, sorry spade, I just read Iceguys post and not yours. My mistake totally. Anyways, you could do that with a block. (and when you posted the comic thingy I thought it was because you didn't understand.)
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
Taking ExGFX ripping/making requests, as well as pallete requests.
ExGFX:Jenka's Character Portrait, Custom detailed ground tileset, Cave-story style ExGFX, and Replacements for SMW sprites (V. 1.0) Update coming!
Documents: A tutorial for Iceguy's levelnames
Hacks I support:
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER
Taking ExGFX ripping/making requests, as well as pallete requests.
ExGFX:Jenka's Character Portrait, Custom detailed ground tileset, Cave-story style ExGFX, and Replacements for SMW sprites (V. 1.0) Update coming!
Documents: A tutorial for Iceguy's levelnames
Hacks I support:
AWAY FROM 17 JUNE-MIDDLE OF SEPTEMBER