How would I go about making a block summon a sprite when a certain button is touched? I'm trying to make it so when you press X or Y it spawns a Mushroom Block in your hands.
The SNES doesn't have a Z button, and X and Y are for holding objects. Though this doesn't really concern you at all.
How would I go about making a block summon a sprite when a certain button is touched? I'm trying to make it so when you press A or Z it spawns a Mushroom Block in your hands.
i think you mean the "Y" buttonBrown Yoshi awesomeness.
My bad god those are my set buttons for X and Y
This might be helpful...
org $00D062
JML CheckAttack
org [whatever]
CheckAttack:
LDA $16
AND #$40
BEQ .Nothing ; Checks Y and X (both set this flag)
LDA $18
AND #$40
BNE .Nothing ; Checks X (only x sets this one)
LDA $15
AND #$08
BEQ .FireBall ; Checks if your pressing up. Subweapon yo!
.TailSpin
JML $00D06C ; do cape move
.FireBall
JML $00D085 ; do fireball
.Nothing
JML $00D0AD ; do nothing at all!
This could be moded to do stuff like that... or something.Your layout has been removed.
A few instructions to check pad status leading into a sprite generation routine that sets the sprite status to 0B (being carried). And that would pop out a sprite into Mario's hands.
ok thanks killoZapit and smkdan. now to work this coding in.... and do what smkdan said...
*runs to notepad*