Language…
20 users online: anonimzwx,  Atari2.0, codfish1002, Domokun007, gemstonezVA, Green Jerry, hhuxy, iamtheratio, Macrophaje, mario90, mathie, monkey03297, nonamelol1,  nycvega,  Ringo,  Saphros,  Segment1Zone2, SirMystic, xMANGRAVYx, ZachJamesGames - Guests: 262 - Bots: 359
Users: 64,795 (2,375 active)
Latest user: mathew

Block Spawning

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.
Peace!Layout by Erik557 & LDA.
Thank you!








Originally posted by Aiyo
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" button
Brown 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*