Language…
24 users online: anonimzwx, bMatSantos, DashGamer, Dennsen86, Domokun007, Gorry, GRIMMKIN, h.carrell, iRhyiku, Joaokk19990, lo fang 123, Maniek, Maw, Metal-Yoshi94, Nayfal,  NopeContest, Serena, ShadowMistressYuko, Silver_Revolver, sinseiga, steelsburg,  Tahixham, Tulip Time Scholarship Games, yno14jax - Guests: 300 - Bots: 464
Users: 64,795 (2,374 active)
Latest user: mathew

Custom Powerup

Hey all, I'm pretty new to ASM, and I want to make my own powerup, but I don't even really know where to start. I understand the basics of ASM, but I'm not sure where to go from there. :/

It's a simple powerup, but is there something I can use to build it off of? Like just a very basic item that you can collect and it does something? Thanks.
fuck yeah meowingtons
The Eggs of Saear | #extreme | Spade's Gallery of Visual Arts | PM me | My YouTube channel | xkcd | Dinosaur Comics
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 ;)
Do I still need the hammer/boomerang generator if the powerup won't even make the player shoot things?

Also, I'm gonna try to decipher this ASM code and try messing around with it. Thanks for ...uh... kind of explaining some things
fuck yeah meowingtons
The Eggs of Saear | #extreme | Spade's Gallery of Visual Arts | PM me | My YouTube channel | xkcd | Dinosaur Comics
I tested that code of yours, Iceguy, and it doesn't seem to work for Mario's palette, although it works fine for every other color.

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:)
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.
Originally posted by Iceguy
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.




I've barely learned anything from this thread at all. :|
fuck yeah meowingtons
The Eggs of Saear | #extreme | Spade's Gallery of Visual Arts | PM me | My YouTube channel | xkcd | Dinosaur Comics
smwcentral icon'.' ... T_T
Originally posted by Iceguy
It can consist of only a sprite or a sprite and a generator (but the latter is more easier to work with.
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.
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
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!
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.
Originally posted by RPG Hacker
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.


QFT.

Also, it's a ridiculously simple powerup. I didn't want to say what it would do because I wanted to make it myself.

I only want it to make the player small. >_>
fuck yeah meowingtons
The Eggs of Saear | #extreme | Spade's Gallery of Visual Arts | PM me | My YouTube channel | xkcd | Dinosaur Comics
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.


 
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.
Originally posted by imamelia
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 know how to change the player's powerup. I know basic ASM. I've just never actually made a real sprite.

Oh, and actually yes, I'd like the effect to be timed. =)
fuck yeah meowingtons
The Eggs of Saear | #extreme | Spade's Gallery of Visual Arts | PM me | My YouTube channel | xkcd | Dinosaur Comics
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