Language…
8 users online: anoMaly666, HD_DankBaron, Jordan, masl,  Nanako, Pink Gold Peach, Shiki_Makiro, Zavok - Guests: 246 - Bots: 338
Users: 64,795 (2,377 active)
Latest user: mathew

Editing how many hits it takes for a custom enemy to take and making straight fireballs a seperate weapon?

Okay, I was just wondering, is there any way to make it so that a custom sprite/enemy from the site takes more hits than it usually should?
And is there a way to make it so straight fireballs can be a seperate weapon?
reading my post history makes me want to drink bleach.

My stream | My YouTube Page | My Steam, for those who care. | My Twitter |My Tumblr
Depends on the sprite. Some has an HP_hit command that lets you chose how meany hits it takes.
Exactly. I revamped the Pelican and turned him into a boss type of enemy. I gave him 5 hits and the sprites he throws at Mario are Homing Bills.
Check my page http://marioepicjourney.blogspot.com to find more updates about my hack Super Mario: The Epic Journey.
Originally posted by dahnamics
Exactly. I revamped the Pelican and turned him into a boss type of enemy. I gave him 5 hits and the sprites he throws at Mario are Homing Bills.

No offence, but don't post off-topicness.
I want to know HOW to do them. Not just know that it's possible.
reading my post history makes me want to drink bleach.

My stream | My YouTube Page | My Steam, for those who care. | My Twitter |My Tumblr
smwcentral iconThis was in http://www.smwcentral.net/?p=thread&id=13436. (the thread is called "How do you make sprites take a # of hits?" the third post[I would quote it if it wasn't so long...]) As for the second question, you could find the value in $19 for the other fire mario (there is one) and put the following in a xkas patch:
LDA $19
CMP #$?? ;put the value here
LDA #$FC
STA $1745
STA $1746
< offtopic > I know, I like/overuse xkas.
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)
Could you explain a little more? Also, even if I knew how, would't it still replace the Normal Fire Mario?
Also, eh, I'm supposed to go to $19, how? </noob questions>
reading my post history makes me want to drink bleach.

My stream | My YouTube Page | My Steam, for those who care. | My Twitter |My Tumblr
smwcentral iconOkay.Well, the power-up address ($19) has 255 values. (In hexidecimal, its FF) There are some of values that have the same effect as value 3. (Fire Mario) If you find one of those other values, you could make a xkas patch to utilitize this value, making it different than normal Fire Mario. Basically, it won't replace Fire Mario. To go to $19, you use LDA $19 to load it. To increase it to search for the value, you could use INC $19. You should add something else so Mario wouldn't flash as different forms like crazy.
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)
I use this code to scroll through powerup 00-FF;
Code
LDA #$08
CMP $16
BEQ PowerUp
LDA #$04
CMP $16
BEQ PowerDown
BNE Return
PowerUp:
INC $19
RTS
PowerDown
DEC $19
RTS
Return:
RTS

Put it in a .txt or a .asm file and run it over TRASM and then insert it with Blocktool/BTSD.


Most of the unused powerups are glitched, like, when walking, you walk right, you just display randomized poses, like looking up, etc. If they aren't glitched pose-wise, they usually are pallete-wise.

You probably just need to do a simple code to see if Mario has X powerup, and if he does, run the rest of the code.



Everything past #$03 really shouldn't be used, though.
smwcentral iconYou could use an unused address, but you would have to carry the values for the power-up to other levels.(The code might be:
!Un = $0660;or other RAM unused address
!Value = #$01;or other value
LDA !Un
CMP !Value
BNE Return
LDA #$FC
STA $1745
STA $1746
Return:
RTL
If you do that, you'd have to make a sprite increase that unused address. It would also have to make Mario Fire Mario.)
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)